#NEWLINE# def __setitem__( self , key , value ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# bnch = super ( Header , self ) . __getitem__ ( key ) #NEWLINE# bnch . value = value #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# bnch = Bunch . Bunch ( key = key , value = value , comment = '' ) #NEWLINE# self . keyorder . append ( key ) #NEWLINE# super ( Header , self ) . __setitem__ ( key , bnch ) #NEWLINE# #UNINDENT# return bnch