(self)
Closing a cursor just exhausts all remaining data.
Closing a cursor just exhausts all remaining data.
Closing a cursor just exhausts all remaining data .
def close(self):
        """
        Closing a cursor just exhausts all remaining data.
        """
        conn = self.connection
        if conn is None:
            return
        try:
            while self.nextset():
                pass
        finally:
            self.connection = None
def close ( self ) : conn = self . connection if conn is None : return try : while self . nextset ( ) : pass finally : self . connection = None