mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
gh-143082: Make readline work when sys.stdin is explicitly passed to pdb (#143083)
This commit is contained in:
parent
c99f766743
commit
68fcb958eb
@ -364,7 +364,7 @@ class Pdb(bdb.Bdb, cmd.Cmd):
|
||||
bdb.Bdb.__init__(self, skip=skip, backend=backend if backend else get_default_backend())
|
||||
cmd.Cmd.__init__(self, completekey, stdin, stdout)
|
||||
sys.audit("pdb.Pdb")
|
||||
if stdin:
|
||||
if stdin is not None and stdin is not sys.stdin:
|
||||
self.use_rawinput = False
|
||||
self.prompt = '(Pdb) '
|
||||
self.aliases = {}
|
||||
|
||||
@ -0,0 +1 @@
|
||||
Fix :mod:`pdb` arrow key history not working when ``stdin`` is ``sys.stdin``.
|
||||
Loading…
x
Reference in New Issue
Block a user