#NEWLINE# def _next_chunk( self ) : #NEWLINE# #INDENT# if self . result_proxy . closed : #NEWLINE# #INDENT# return False #NEWLINE# #UNINDENT# if ( not self . step ) : #NEWLINE# #INDENT# chunk = self . result_proxy . fetchall ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# chunk = self . result_proxy . fetchmany ( self . step ) #NEWLINE# #UNINDENT# if chunk : #NEWLINE# #INDENT# self . _iter = iter ( self ) #NEWLINE# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False