Skip to content

Commit

Permalink
BUG: allow npy_PyFile_Dup2 to report its error in np.fromfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cjermain committed Sep 8, 2015
1 parent 99583aa commit 5225e4c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions numpy/core/src/multiarray/multiarraymodule.c
Expand Up @@ -2119,8 +2119,6 @@ array_fromfile(PyObject *NPY_UNUSED(ignored), PyObject *args, PyObject *keywds)
}
fp = npy_PyFile_Dup2(file, "rb", &orig_pos);
if (fp == NULL) {
PyErr_SetString(PyExc_IOError,
"first argument must be an open file");
Py_DECREF(file);
return NULL;
}
Expand Down

0 comments on commit 5225e4c

Please sign in to comment.