mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-08-02 19:30: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):
|
def __init__(self, minconn, maxconn, *args, **kwargs):
|
||||||
"""Initialize the threading lock."""
|
"""Initialize the threading lock."""
|
||||||
import threading
|
import threading
|
||||||
AbstractConnectionPool.__init__(
|
AbstractConnectionPool.__init__(self, minconn, maxconn, *args, **kwargs)
|
||||||
self, minconn, maxconn, *args, **kwargs)
|
|
||||||
self._lock = threading.Lock()
|
self._lock = threading.Lock()
|
||||||
|
|
||||||
def getconn(self, key=None):
|
def getconn(self, key=None):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user