#NEWLINE# def accepts( * verbs ) : #NEWLINE# #INDENT# 'Annotate a method with the HTTP verbs it accepts, and enforce it.' #NEWLINE# def _inner( method ) : #NEWLINE# #INDENT# setattr ( method , '_accepts' , verbs ) #NEWLINE# return method_decorator ( require_http_methods ( [ x . upper ( ) for x in verbs ] ) ) ( method ) #NEWLINE# #UNINDENT# return _inner