#NEWLINE# def fetchmany( self , size = None ) : #NEWLINE# #INDENT# if ( size is None ) : #NEWLINE# #INDENT# return self . fetchall ( ) #NEWLINE# #UNINDENT# l = [ ] #NEWLINE# for i in range ( size ) : #NEWLINE# #INDENT# row = self . fetchone ( ) #NEWLINE# if ( row is None ) : #NEWLINE# #INDENT# break #NEWLINE# #UNINDENT# l . append ( row ) #NEWLINE# #UNINDENT# return l