Fix linting issue

This commit is contained in:
Friedrich Lindenberg 2021-04-22 18:54:19 +02:00
parent c13b79fc59
commit a75b7c4c93

View File

@ -79,7 +79,7 @@ class Database(object):
"""Connection against which statements will be executed."""
with self.lock:
tid = threading.get_ident()
if not tid in self.connections:
if tid not in self.connections:
self.connections[tid] = self.engine.connect()
return self.connections[tid]