From 835836123b0e4202cb4f94166aece06d15ddd811 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 11 Jul 2022 16:04:16 -0400 Subject: [PATCH] Just don't call longlist on 3.10+ for now --- tractor/_debug.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/tractor/_debug.py b/tractor/_debug.py index 046a896..34003a2 100644 --- a/tractor/_debug.py +++ b/tractor/_debug.py @@ -692,10 +692,10 @@ def shield_sigint( # that **is not** marked in debug mode? # elif debug_mode(): - else: - log.pdb( - "Ignoring SIGINT since debug mode is enabled" - ) + else: + log.pdb( + "Ignoring SIGINT since debug mode is enabled" + ) # maybe redraw/print last REPL output to console if pdb_obj: @@ -715,7 +715,10 @@ def shield_sigint( # https://github.com/pdbpp/pdbpp/issues/496 # pdb_obj.lastcmd = 'longlist' if sys.version_info >= (3, 10): - pdb_obj._printlonglist(False) + pass + # print('--KeyboardInterrupt--') + # pdb_obj.do_longlist(None) + # pdb_obj._printlonglist(False) else: pdb_obj.do_longlist(None)