def putconn(self, conn=None, key=None, close=False):
    'Put away an unused connection.'
    self._lock.acquire()
    try:
        self._putconn(conn, key, close)
    finally:
        self._lock.release()
Put away an unused connection.
def putconn(self, conn=None, key=None, close=False):
    
    self._lock.acquire()
    try:
        self._putconn(conn, key, close)
    finally:
        self._lock.release()