From 5a8989e0e7fd516f762072446cee508ad71c2f05 Mon Sep 17 00:00:00 2001 From: Shubham Sharma Date: Tue, 21 Sep 2021 22:48:58 +0530 Subject: [PATCH] Update __init__ of ThreadedConnectionPool --- lib/pool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pool.py b/lib/pool.py index 0fbca902..c9d38a18 100644 --- a/lib/pool.py +++ b/lib/pool.py @@ -174,9 +174,9 @@ class ThreadedConnectionPool(AbstractConnectionPool): of psycopg2 """ + super().__init__(minconn, maxconn, *args, **kwargs) + import threading - AbstractConnectionPool.__init__( - self, minconn, maxconn, *args, **kwargs) self._lock = threading.Lock() def getconn(self, key=None):