Commit ec412c6d authored by Guido van Rossum's avatar Guido van Rossum

Add isatty() to TextIOWrapper.

parent ce9c5233
......@@ -1004,6 +1004,9 @@ class TextIOWrapper(TextIOBase):
def fileno(self):
return self.buffer.fileno()
def isatty(self):
return self.buffer.isatty()
def write(self, s: str):
# XXX What if we were just reading?
b = s.encode(self._encoding)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment