Call longlist normally when on py < 3.10
parent
d0dcd55f47
commit
a90ca4b384
|
@ -392,7 +392,7 @@ async def wait_for_parent_stdin_hijack(
|
||||||
def mk_mpdb() -> tuple[MultiActorPdb, Callable]:
|
def mk_mpdb() -> tuple[MultiActorPdb, Callable]:
|
||||||
|
|
||||||
pdb = MultiActorPdb()
|
pdb = MultiActorPdb()
|
||||||
signal.signal = pdbpp.hideframe(signal.signal)
|
# signal.signal = pdbpp.hideframe(signal.signal)
|
||||||
orig_handler = signal.signal(
|
orig_handler = signal.signal(
|
||||||
signal.SIGINT,
|
signal.SIGINT,
|
||||||
partial(shield_sigint, pdb_obj=pdb),
|
partial(shield_sigint, pdb_obj=pdb),
|
||||||
|
@ -713,10 +713,13 @@ def shield_sigint(
|
||||||
try:
|
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.do_longlist(None)
|
|
||||||
# pdb_obj.lastcmd = 'longlist'
|
# pdb_obj.lastcmd = 'longlist'
|
||||||
pdb_obj._printlonglist(max_lines=False)
|
if sys.version_info >= (3, 10):
|
||||||
# print(pdb_obj.prompt, end='', flush=True)
|
pdb_obj._printlonglist(False)
|
||||||
|
|
||||||
|
else:
|
||||||
|
pdb_obj.do_longlist(None)
|
||||||
|
print(pdb_obj.prompt, end='', flush=True)
|
||||||
|
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
log.exception('pdbpp longlist failed...')
|
log.exception('pdbpp longlist failed...')
|
||||||
|
|
Loading…
Reference in New Issue