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)
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins