#NEWLINE# def cstringio_refill( self , partialread , reqlen ) : #NEWLINE# #INDENT# retstring = partialread #NEWLINE# if ( reqlen < self . __rbuf_size ) : #NEWLINE# #INDENT# retstring += self . __trans . read ( self . __rbuf_size ) #NEWLINE# #UNINDENT# if ( len ( retstring ) < reqlen ) : #NEWLINE# #INDENT# retstring += self . __trans . readAll ( ( reqlen - len ( retstring ) ) ) #NEWLINE# #UNINDENT# self . __rbuf = StringIO ( retstring ) #NEWLINE# return self . __rbuf