Kaydet (Commit) 859b5ec2 authored tarafından Guido van Rossum's avatar Guido van Rossum

Add isatty() to TextIOWrapper.

üst eba76965
......@@ -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