Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Joshua
wendelin.core
Commits
b48481c0
Commit
b48481c0
authored
Dec 19, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f23bd9d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
bigfile/_bigfile.c
bigfile/_bigfile.c
+17
-0
No files found.
bigfile/_bigfile.c
View file @
b48481c0
...
...
@@ -986,6 +986,23 @@ pyfile_new(PyTypeObject *type, PyObject *args, PyObject *kw)
Py_DECREF
(
blkmmapper
);
return
NULL
;
}
if
(
blkmmap_ops
->
loadblk
||
blkmmap_ops
->
storeblk
)
{
Py_DECREF
(
blkmmapper
);
return
PyErr_Format
(
PyExc_TypeError
,
"%s: .blkmmapper: !mmap methods present"
,
type
->
tp_name
);
}
if
(
!
(
blkmmap_ops
->
mmap_setup_read
&&
blkmmap_ops
->
remmap_blk_read
&&
blkmmap_ops
->
munmap
))
{
Py_DECREF
(
blkmmapper
);
return
PyErr_Format
(
PyExc_TypeError
,
"%s: .blkmmapper: not all mmap methods present"
,
type
->
tp_name
);
}
}
self
=
(
PyBigFile
*
)
PyType_GenericNew
(
type
,
args
,
kw
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment