#NEWLINE# def _append_method( action_function , method_name ) : #NEWLINE# #INDENT# allowed_methods = getattr ( action_function , 'allowed_methods' , [ ] ) #NEWLINE# allowed_methods . append ( method_name ) #NEWLINE# action_function . allowed_methods = allowed_methods #NEWLINE# return allowed_methods