8000 No idea why we were hardcoding anything here, ever. · alex-python/fabric@5d0681a · GitHub
[go: up one dir, main page]

Skip to content

Commit 5d0681a

Browse files
committed
No idea why we were hardcoding anything here, ever.
Caused fabric#303, and also breaks inside bpython, as it happens.
1 parent 11b9964 commit 5d0681a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fabric/context_managers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ def char_buffered(pipe):
325325
326326
Only applies on Unix-based systems; on Windows this is a no-op.
327327
"""
328-
if win32 or not sys.stdin.isatty():
328+
if win32 or not pipe.isatty():
329329
yield
330330
else:
331331
old_settings = termios.tcgetattr(pipe)

0 commit comments

Comments
 (0)
0