#NEWLINE# @ contextmanager #NEWLINE# def open( self , mode = 'r' ) : #NEWLINE# #INDENT# if ( not mode . startswith ( 'r' ) ) : #NEWLINE# #INDENT# raise ArgumentError ( 'source is read-only' ) #NEWLINE# #UNINDENT# if ( 'b' in self ) : #NEWLINE# #INDENT# ( yield Uncloseable ( stdin_binary ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ( yield Uncloseable ( sys . stdin ) )