(self)
Close the connection.
Close the connection.
Close the connection .
def close(self):
        """Close the connection."""
        if self.connection:
            self.connection.close()
            self.connection = None
            logging.debug("Connection closed.")
def close ( self ) : if self . connection : self . connection . close ( ) self . connection = None logging . debug ( "Connection closed." )