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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
19528fed
Commit
19528fed
authored
Apr 03, 2020
by
Kirill Smelkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
b89dd7f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
bigfile/_file_zodb.pyx
bigfile/_file_zodb.pyx
+7
-2
No files found.
bigfile/_file_zodb.pyx
View file @
19528fed
...
...
@@ -51,7 +51,7 @@ cdef extern from * nogil:
import
wcfs
as
pywcfs
from
wcfs.client
cimport
_wcfs
as
wcfs
from
golang
cimport
nil
from
golang
cimport
error
,
nil
,
pyerror
from
cpython
cimport
PyCapsule_New
from
ZODB.Connection
import
Connection
as
ZConnection
...
...
@@ -83,7 +83,12 @@ cdef public class _ZBigFile(BigFile) [object _ZBigFile, type _ZBigFile_Type]:
return
obj
def
__dealloc__
(
_ZBigFile
zf
):
zf
.
wfileh
=
nil
# XXX where it should be closed?
cdef
error
err
=
nil
if
zf
.
wfileh
!=
nil
:
err
=
zf
.
wfileh
.
close
()
zf
.
wfileh
=
nil
if
err
!=
nil
:
raise
pyerror
.
from_error
(
err
)
# redirect load/store to main class
...
...
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