#NEWLINE# def writable( self ) : #NEWLINE# #INDENT# 'Return whether object was opened for writing.\n\n        If False, write() and truncate() will raise IOError.\n\n        ' #NEWLINE# mode = self . _mode #NEWLINE# return ( ( 'w' in mode ) or ( 'a' in mode ) or ( '+' in mode ) )