def close ( self ) : if self . db is not None : self . db . commit ( ) self . db . close ( ) self . db = None return
python emptying current memory
Close the db and release memory
def close( self ):
        """
        Close the db and release memory
        """
        if self.db is not None:
            self.db.commit()
            self.db.close()
            self.db = None

        return