From a75b7c4c93d7dc850f7e03b2dc6677e055d779b5 Mon Sep 17 00:00:00 2001 From: Friedrich Lindenberg Date: Thu, 22 Apr 2021 18:54:19 +0200 Subject: [PATCH] Fix linting issue --- dataset/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dataset/database.py b/dataset/database.py index b1ba25e..748ed15 100644 --- a/dataset/database.py +++ b/dataset/database.py @@ -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]