summaryrefslogtreecommitdiff
path: root/numpy/core/records.py
diff options
context:
space:
mode:
authorMike Taves <mwtoews@gmail.com>2021-09-02 21:32:21 +1200
committerMike Taves <mwtoews@gmail.com>2021-09-02 22:56:43 +1200
commit7ad8ea7b11e3544b133d8b397dd3bbe4833d3308 (patch)
tree8726a71692b20b079cec53e76f5c1fb33c806d7b /numpy/core/records.py
parent9fca8f0c1a3f16f8f62ae574ec1a79b5b588214e (diff)
downloadnumpy-7ad8ea7b11e3544b133d8b397dd3bbe4833d3308.tar.gz
MAINT: revise OSError aliases (IOError, EnvironmentError)
Diffstat (limited to 'numpy/core/records.py')
-rw-r--r--numpy/core/records.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/records.py b/numpy/core/records.py
index 2c20b7d45..fd5f1ab39 100644
--- a/numpy/core/records.py
+++ b/numpy/core/records.py
@@ -939,7 +939,7 @@ def fromfile(fd, dtype=None, shape=None, offset=0, formats=None,
_array = recarray(shape, descr)
nbytesread = fd.readinto(_array.data)
if nbytesread != nbytes:
- raise IOError("Didn't read as many bytes as expected")
+ raise OSError("Didn't read as many bytes as expected")
return _array