Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
e06b62e8
Commit
e06b62e8
authored
Jun 15, 2016
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Define _modified at class level
Hopefully, this will make linters happier.
parent
1594dc10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
src/ZODB/mvccadapter.py
src/ZODB/mvccadapter.py
+4
-1
No files found.
src/ZODB/mvccadapter.py
View file @
e06b62e8
...
...
@@ -146,6 +146,9 @@ class MVCCAdapterInstance(Base):
raise
POSException
.
ReadConflictError
(
repr
(
oid
))
return
r
[:
2
]
_modified
=
None
# Used to keep track of oids modified within a
# transaction, so we can invalidate them later.
def
tpc_begin
(
self
,
transaction
):
self
.
_storage
.
tpc_begin
(
transaction
)
self
.
_modified
=
set
()
...
...
@@ -165,7 +168,7 @@ class MVCCAdapterInstance(Base):
def
invalidate_finish
(
tid
):
self
.
_base
.
_invalidate_finish
(
self
.
_modified
,
self
)
func
(
tid
)
del
self
.
_modified
self
.
_modified
=
None
self
.
_storage
.
tpc_finish
(
transaction
,
invalidate_finish
)
...
...
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