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
132fdf5d
Commit
132fdf5d
authored
Dec 19, 2019
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
f9070e77
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
bigfile/_bigfile.c
bigfile/_bigfile.c
+9
-2
No files found.
bigfile/_bigfile.c
View file @
132fdf5d
...
...
@@ -956,8 +956,9 @@ pyfileh_open(PyObject *pyfile0, PyObject *args)
static
PyObject
*
pyfile_new
(
PyTypeObject
*
type
,
PyObject
*
args
,
PyObject
*
kw
)
{
PyBigFile
*
self
;
PyObject
*
blkmmapper
;
PyBigFile
*
self
;
PyObject
*
blkmmapper
;
bigfile_ops
*
blkmmap_ops
=
NULL
;
blkmmapper
=
PyObject_GetAttrString
((
PyObject
*
)
type
,
"blkmmapper"
);
PyErr_Clear
();
/* GetAttr raises exception if there is no attribute */
...
...
@@ -967,6 +968,12 @@ pyfile_new(PyTypeObject *type, PyObject *args, PyObject *kw)
return
PyErr_Format
(
PyExc_TypeError
,
"%s: .blkmmapper is not a valid pycapsule with mmap methods"
,
type
->
tp_name
);
}
blkmmap_ops
=
PyCapsule_GetPointer
(
blkmmapper
,
"wendelin.bigfile.IBlkMMapper"
);
if
(
blkmmap_ops
==
NULL
)
{
/* just in case - must not fail */
Py_DECREF
(
blkmmapper
);
return
NULL
;
}
}
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