def get_result(self, cursor):
title = headers = None<EOL>if cursor.description is not None:<EOL><INDENT>headers = [x[<NUM_LIT:0>] for x in cursor.description]<EOL>rows = cursor.fetchall()<EOL>status = '<STR_LIT>' % (len(rows), '<STR_LIT>' if len(rows) == <NUM_LIT:1> else '<STR_LIT:s>')<EOL><DEDENT>else:<EOL><INDENT>logger.debug('<STR_LIT>')<EOL>rows = None<EOL>status = '<STR_LIT>'<EOL><DEDENT>return (title, rows, headers, status)<EOL>
Get the current result's data from the cursor.