#NEWLINE# def __setattr__( self , name , value ) : #NEWLINE# #INDENT# if value . _closed : #NEWLINE# #INDENT# raise AttributeError ( 'TxMongo: cannot set {0} on a closed file.' . format ( repr ( name ) ) ) #NEWLINE# #UNINDENT# object . __setattr__ ( self , name , value )