#NEWLINE# def consume( self , count = None ) : #NEWLINE# #INDENT# if ( count is None ) : #NEWLINE# #INDENT# count = ( len ( self . text ) - self . pos ) #NEWLINE# #UNINDENT# newpos = ( self . pos + count ) #NEWLINE# self . line += self . text . count ( '\n' , self . pos , newpos ) #NEWLINE# s = self . text [ self . pos : newpos ] #NEWLINE# self . pos = newpos #NEWLINE# return self