Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
caucase
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
caucase
Commits
e2cfbf99
Commit
e2cfbf99
authored
Apr 01, 2019
by
Vincent Pelletier
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
storage: Make pylint happier.
parent
0c91a324
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
caucase/storage.py
caucase/storage.py
+6
-0
No files found.
caucase/storage.py
View file @
e2cfbf99
...
@@ -32,6 +32,12 @@ __all__ = ('SQLite3Storage', )
...
@@ -32,6 +32,12 @@ __all__ = ('SQLite3Storage', )
DAY_IN_SECONDS
=
60
*
60
*
24
DAY_IN_SECONDS
=
60
*
60
*
24
class
NoReentryConnection
(
sqlite3
.
Connection
):
class
NoReentryConnection
(
sqlite3
.
Connection
):
"""
Refuse to start an already started transaction.
Allows detecting code bugs which would lead to non-atomic updates (partial
outer transaction getting committed by an inner transaction).
"""
__entered
=
False
__entered
=
False
def
__enter__
(
self
):
def
__enter__
(
self
):
...
...
Łukasz Nowak
@luke
mentioned in merge request
!7 (closed)
·
Apr 30, 2019
mentioned in merge request
!7 (closed)
mentioned in merge request !7
Toggle commit list
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