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