summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/io.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/io.py b/Lib/io.py
index 67049e6..3fcab6b 100644
--- a/Lib/io.py
+++ b/Lib/io.py
@@ -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)