def __enter__(self):
        """

        :return:
        """
        self.conn = sqlite3.connect(self.path)
        self.cursor = self.conn.cursor()
        return self.cursor
def __enter__ ( self ) : self . conn = sqlite3 . connect ( self . path ) self . cursor = self . conn . cursor ( ) return self . cursor
:return: