def dictfetchone(cursor):
 row = cursor.fetchone()
 if (not row):
  return None
 return _dict_helper(cursor.description, row)

def dictfetchone ( cursor ) : row = cursor . fetchone ( ) if ( not row ) : return None return _dict_helper ( cursor . description , row )
returns a row from the cursor as a dict .