Skip to content

Commit 2cb24f3

Browse files
committed
adress gaogao's comments about different ttys
1 parent 6968839 commit 2cb24f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/pdb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def __init__(self, completekey='tab', stdin=None, stdout=None, skip=None,
364364
bdb.Bdb.__init__(self, skip=skip, backend=backend if backend else get_default_backend())
365365
cmd.Cmd.__init__(self, completekey, stdin, stdout)
366366
sys.audit("pdb.Pdb")
367-
if stdin and not getattr(stdin, 'isatty', lambda: False)():
367+
if stdin is not None and stdin is not sys.stdin:
368368
self.use_rawinput = False
369369
self.prompt = '(Pdb) '
370370
self.aliases = {}

0 commit comments

Comments
 (0)