mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-01 19:00:09 +03:00
Little style fix in pool module.
This commit is contained in:
parent
d1aa1585a1
commit
88efd08567
|
@ -157,8 +157,7 @@ class ThreadedConnectionPool(AbstractConnectionPool):
|
|||
def __init__(self, minconn, maxconn, *args, **kwargs):
|
||||
"""Initialize the threading lock."""
|
||||
import threading
|
||||
AbstractConnectionPool.__init__(
|
||||
self, minconn, maxconn, *args, **kwargs)
|
||||
AbstractConnectionPool.__init__(self, minconn, maxconn, *args, **kwargs)
|
||||
self._lock = threading.Lock()
|
||||
|
||||
def getconn(self, key=None):
|
||||
|
|
Loading…
Reference in New Issue
Block a user