def get_connection(self, command_name, *keys, **options):
    'Get a connection from the pool'
    self._checkpid()
    try:
        connection = self._available_connections.pop()
    except IndexError:
        connection = self.make_connection()
    self._in_use_connections.add(connection)
    return connection
Get a connection from the pool
def get_connection(self, command_name, *keys, **options):
    
    self._checkpid()
    try:
        connection = self._available_connections.pop()
    except IndexError:
        connection = self.make_connection()
    self._in_use_connections.add(connection)
    return connection