def next(self):
if self.rows is None:<EOL><INDENT>raise ProgrammingError(<EOL>"<STR_LIT>" +<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT>elif not self._closed:<EOL><INDENT>return next(self.rows)<EOL><DEDENT>else:<EOL><INDENT>raise ProgrammingError("<STR_LIT>")<EOL><DEDENT>
Return the next row of a query result set, respecting if cursor was
closed.