Commit 6d1e34da authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 5d26bb3e
...@@ -926,10 +926,9 @@ pyfileh_open(PyObject *pyfile0, PyObject *args) ...@@ -926,10 +926,9 @@ pyfileh_open(PyObject *pyfile0, PyObject *args)
if (mmap_overlay == -1) if (mmap_overlay == -1)
mmap_overlay = (pyfile->blkmmap_ops != NULL ? 1 : 0); mmap_overlay = (pyfile->blkmmap_ops != NULL ? 1 : 0);
if (mmap_overlay && pyfile->blkmmap_ops == NULL) { if (mmap_overlay && pyfile->blkmmap_ops == NULL)
PyErr_SetString(PyExc_TypeError, "BigFile subtype does not provide blkmmapper"); return PyErr_Format(PyExc_TypeError,
return NULL; "%s type does not provide blkmmapper", pyfile0->ob_type->tp_name);
}
pyfileh = PyType_New(PyBigFileH, &PyBigFileH_Type, NULL); pyfileh = PyType_New(PyBigFileH, &PyBigFileH_Type, NULL);
if (!pyfileh) if (!pyfileh)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment