src/thriftpool/pool.py
def return_connection(self, conn):
        """ return a thrift connection to the pool.
        """
        if self._closed:
            self._close_thrift_connection(conn)
            return
        self._connection_queue.put(conn)
        self._semaphore.release()
 return a thrift connection to the pool.
        
return a thrift connection to the pool.
return a thrift connection to the pool .
def return_connection(self, conn):
        if self._closed:
            self._close_thrift_connection(conn)
            return
        self._connection_queue.put(conn)
        self._semaphore.release()
def return_connection ( self , conn ) : if self . _closed : self . _close_thrift_connection ( conn ) return self . _connection_queue . put ( conn ) self . _semaphore . release ( )
return a thrift connection to the pool.
return a thrift connection to the pool .
""" return a thrift connection to the pool.
        """
self
conn