#5727: Restore the ability to use readline when calling into pdb in doctests.
This commit is contained in:
parent
06535ee56d
commit
d72e043bdd
|
@ -318,6 +318,8 @@ class _OutputRedirectingPdb(pdb.Pdb):
|
|||
self.__out = out
|
||||
self.__debugger_used = False
|
||||
pdb.Pdb.__init__(self, stdout=out)
|
||||
# still use input() to get user input
|
||||
self.use_rawinput = 1
|
||||
|
||||
def set_trace(self, frame=None):
|
||||
self.__debugger_used = True
|
||||
|
|
Loading…
Reference in New Issue