_OutputRedirectingPdb.trace_dispatch(): Return the base class's
trace_dispatch() result in a more obvious, and more robust way.
This commit is contained in:
parent
50c6bdb1d6
commit
d7bbbbc594
@ -348,10 +348,11 @@ class _OutputRedirectingPdb(pdb.Pdb):
|
|||||||
save_stdout = sys.stdout
|
save_stdout = sys.stdout
|
||||||
sys.stdout = self.__out
|
sys.stdout = self.__out
|
||||||
# Call Pdb's trace dispatch method.
|
# Call Pdb's trace dispatch method.
|
||||||
result = pdb.Pdb.trace_dispatch(self, *args)
|
try:
|
||||||
|
return pdb.Pdb.trace_dispatch(self, *args)
|
||||||
|
finally:
|
||||||
# Restore stdout.
|
# Restore stdout.
|
||||||
sys.stdout = save_stdout
|
sys.stdout = save_stdout
|
||||||
return result
|
|
||||||
|
|
||||||
# [XX] Normalize with respect to os.path.pardir?
|
# [XX] Normalize with respect to os.path.pardir?
|
||||||
def _module_relative_path(module, path):
|
def _module_relative_path(module, path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user