mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
#5727: Restore the ability to use readline when calling into pdb in doctests.
This commit is contained in:
parent
06535ee56d
commit
d72e043bdd
2 changed files with 5 additions and 0 deletions
|
@ -318,6 +318,8 @@ class _OutputRedirectingPdb(pdb.Pdb):
|
||||||
self.__out = out
|
self.__out = out
|
||||||
self.__debugger_used = False
|
self.__debugger_used = False
|
||||||
pdb.Pdb.__init__(self, stdout=out)
|
pdb.Pdb.__init__(self, stdout=out)
|
||||||
|
# still use input() to get user input
|
||||||
|
self.use_rawinput = 1
|
||||||
|
|
||||||
def set_trace(self, frame=None):
|
def set_trace(self, frame=None):
|
||||||
self.__debugger_used = True
|
self.__debugger_used = True
|
||||||
|
|
|
@ -475,6 +475,9 @@ C-API
|
||||||
Library
|
Library
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
- Issue #5727: Restore the ability to use readline when calling into pdb
|
||||||
|
in doctests.
|
||||||
|
|
||||||
- Issue #6719: In pdb, do not stop somewhere in the encodings machinery
|
- Issue #6719: In pdb, do not stop somewhere in the encodings machinery
|
||||||
if the source file to be debugged is in a non-builtin encoding.
|
if the source file to be debugged is in a non-builtin encoding.
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue