#NEWLINE# def read( self , nbytes = None ) : #NEWLINE# #INDENT# 'Return nbytes characters of the "string" attribute.\n\n    Args:\n      nbytes: Number of bytes to read from the file or None returns the entire\n        file.\n\n    Returns:\n      An nbytes slice of the "string" attribute.\n    ' #NEWLINE# if ( nbytes is None ) : #NEWLINE# #INDENT# nbytes = len ( self . string ) #NEWLINE# #UNINDENT# r = self . string [ 0 : nbytes ] #NEWLINE# self . string = self . string [ nbytes : ] #NEWLINE# return r