Skip to content

Commit 79ac893

Browse files
committed
out.py: relax tty restriction for stdout messages
Now that more messages print to stderr, we don't have to play guardian with the stdout file descriptor.
1 parent 99b536d commit 79ac893

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

stgit/out.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,7 @@ def __init__(self, file=None):
9999
sys.stderr.fileno(), 'w', buffering=1, encoding='utf-8'
100100
)
101101
)
102-
if file or sys.stdout.isatty():
103-
self.__out = self.__stdout
104-
else:
105-
self.__out = Output(None)
102+
self.__out = self.__stdout
106103

107104
def stdout(self, line):
108105
"""Write a line to stdout."""

0 commit comments

Comments
 (0)