def putconn(self, conn=None, close=False):
    'Put away an unused connection.'
    key = self.__thread.get_ident()
    self._lock.acquire()
    try:
        if (not conn):
            conn = self._used[key]
        self._putconn(conn, key, close)
    finally:
        self._lock.release()
Put away an unused connection.
def putconn(self, conn=None, close=False):
    
    key = self.__thread.get_ident()
    self._lock.acquire()
    try:
        if (not conn):
            conn = self._used[key]
        self._putconn(conn, key, close)
    finally:
        self._lock.release()