#NEWLINE# def _fetchmany_impl( self , size = None ) : #NEWLINE# #INDENT# if ( size is None ) : #NEWLINE# #INDENT# return self . _fetchall_impl ( ) #NEWLINE# #UNINDENT# result = [ ] #NEWLINE# for x in range ( 0 , size ) : #NEWLINE# #INDENT# row = self . _fetchone_impl ( ) #NEWLINE# if ( self is None ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# result . append ( row ) #NEWLINE# #UNINDENT# return result