[Python-3000-checkins] r55609 - python/branches/py3k-struni/Lib/io.py

guido.van.rossum python-3000-checkins at python.org
Sun May 27 11:14:54 CEST 2007


Author: guido.van.rossum
Date: Sun May 27 11:14:51 2007
New Revision: 55609

Modified:
   python/branches/py3k-struni/Lib/io.py
Log:
Add isatty() to TextIOWrapper.


Modified: python/branches/py3k-struni/Lib/io.py
==============================================================================
--- python/branches/py3k-struni/Lib/io.py	(original)
+++ python/branches/py3k-struni/Lib/io.py	Sun May 27 11:14:51 2007
@@ -1004,6 +1004,9 @@
     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)


More information about the Python-3000-checkins mailing list