Commit e2cfbf99 by Vincent Pelletier

storage: Make pylint happier.

1 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):
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!