#NEWLINE# def read( self , n = ( - 1 ) ) : #NEWLINE# #INDENT# b = self . _stream . read ( n ) #NEWLINE# if ( self . newline == b'' ) : #NEWLINE# #INDENT# return b #NEWLINE# #UNINDENT# if ( self . newline is None ) : #NEWLINE# #INDENT# newline = b'\n' #NEWLINE# #UNINDENT# return re . sub ( b'(\n|\r\n|\r)' , newline , b )