Commit e2cfbf99 authored by Vincent Pelletier's avatar Vincent Pelletier

storage: Make pylint happier.

parent 0c91a324
......@@ -32,6 +32,12 @@ __all__ = ('SQLite3Storage', )
DAY_IN_SECONDS = 60 * 60 * 24
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
def __enter__(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment