summaryrefslogtreecommitdiff
path: root/numpy/compat
diff options
context:
space:
mode:
authorPauli Virtanen <pav@iki.fi>2010-02-20 18:15:20 +0000
committerPauli Virtanen <pav@iki.fi>2010-02-20 18:15:20 +0000
commit348f725101ef97f538e4652c66b54d5633d4be4d (patch)
treea38cec203096541b6b12f9b89df886e0695b0a76 /numpy/compat
parent2dd53a6599652d7e6c594c1ffa377eb3232ba69c (diff)
downloadpython-numpy-348f725101ef97f538e4652c66b54d5633d4be4d.tar.gz
python-numpy-348f725101ef97f538e4652c66b54d5633d4be4d.tar.bz2
python-numpy-348f725101ef97f538e4652c66b54d5633d4be4d.zip
3K: compat: make isfileobj recognize only real file objects with FILE* pointers as file objects
Diffstat (limited to 'numpy/compat')
-rw-r--r--numpy/compat/py3k.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/compat/py3k.py b/numpy/compat/py3k.py
index 534ae4d29..f1954d1e9 100644
--- a/numpy/compat/py3k.py
+++ b/numpy/compat/py3k.py
@@ -18,7 +18,7 @@ if sys.version_info[0] >= 3:
return s
return s.encode('iso-8859-1')
def isfileobj(f):
- return isinstance(f, io.IOBase)
+ return isinstance(f, io.FileIO)
strchar = 'U'
else:
bytes = str