def make_connection(self):
    'Create a new connection'
    if (self._created_connections >= self.max_connections):
        raise ConnectionError('Too many connections')
    self._created_connections += 1
    return self.connection_class(**self.connection_kwargs)
Create a new connection
def make_connection(self):
    
    if (self._created_connections >= self.max_connections):
        raise ConnectionError('Too many connections')
    self._created_connections += 1
    return self.connection_class(**self.connection_kwargs)