[pypy-commit] pypy use-file-star-for-file: use rfile.isatty()
bdkearns
noreply at buildbot.pypy.org
Wed Sep 10 03:08:50 CEST 2014
Author: Brian Kearns <bdkearns at gmail.com>
Branch: use-file-star-for-file
Changeset: r73410:4f4af93bcb92
Date: 2014-09-09 21:02 -0400
http://bitbucket.org/pypy/pypy/changeset/4f4af93bcb92/
Log: use rfile.isatty()
diff --git a/pypy/module/_file/interp_file.py b/pypy/module/_file/interp_file.py
--- a/pypy/module/_file/interp_file.py
+++ b/pypy/module/_file/interp_file.py
@@ -229,8 +229,7 @@
direct_xreadlines = direct___iter__
def direct_isatty(self):
- stream = self.getstream() # check if the file is still open
- return os.isatty(stream.fileno())
+ return self.getstream().isatty()
# ____________________________________________________________
#
More information about the pypy-commit
mailing list