#NEWLINE# def write( self , s ) : #NEWLINE# #INDENT# if s . closed : #NEWLINE# #INDENT# raise ValueError ( 'I/O operation on closed file' ) #NEWLINE# #UNINDENT# raise IOError ( 9 , 'Bad file descriptor' )