Just drop all longlisting for now and leave comments

signint_saviour
Tyler Goodlet 2022-07-11 18:21:34 -04:00
parent a101971027
commit ef8dc0204c
1 changed files with 9 additions and 16 deletions

View File

@ -698,7 +698,7 @@ def shield_sigint(
) )
# maybe redraw/print last REPL output to console # maybe redraw/print last REPL output to console
if pdb_obj: # if pdb_obj:
# TODO: make this work like sticky mode where if there is output # TODO: make this work like sticky mode where if there is output
# detected as written to the tty we redraw this part underneath # detected as written to the tty we redraw this part underneath
@ -710,23 +710,16 @@ def shield_sigint(
# https://github.com/goodboy/tractor/issues/130#issuecomment-663752040 # https://github.com/goodboy/tractor/issues/130#issuecomment-663752040
# https://github.com/prompt-toolkit/python-prompt-toolkit/blob/c2c6af8a0308f9e5d7c0e28cb8a02963fe0ce07a/prompt_toolkit/patch_stdout.py # https://github.com/prompt-toolkit/python-prompt-toolkit/blob/c2c6af8a0308f9e5d7c0e28cb8a02963fe0ce07a/prompt_toolkit/patch_stdout.py
try:
# XXX: lol, see ``pdbpp`` issue: # XXX: lol, see ``pdbpp`` issue:
# https://github.com/pdbpp/pdbpp/issues/496 # https://github.com/pdbpp/pdbpp/issues/496
# pdb_obj.lastcmd = 'longlist'
# if sys.version_info >= (3, 10):
# pass
# # print('--KeyboardInterrupt--')
# # pdb_obj.do_longlist(None)
# # pdb_obj._printlonglist(False)
# else: # TODO: pretty sure this is what we should expect to have to run
pdb_obj.do_longlist(None) # in total but for now we're just going to wait until `pdbpp`
print(pdb_obj.prompt, end='', flush=True) # figures out it's own stuff on 3.10 (and maybe we'll help).
# pdb_obj.do_longlist(None)
except AttributeError: # XXX: we were doing this but it shouldn't be required..
log.exception('pdbpp longlist failed...') # print(pdb_obj.prompt, end='', flush=True)
raise KeyboardInterrupt
def _set_trace( def _set_trace(