Remove excessive class instance while getting http_method_names

This commit is contained in:
hurturk 2017-05-03 03:49:04 -04:00
parent 6075f8051a
commit 518bb44a9e

View File

@ -247,7 +247,7 @@ class EndpointInspector(object):
"""
if hasattr(callback, 'actions'):
actions = set(callback.actions.keys())
http_method_names = set(callback.cls().http_method_names)
http_method_names = set(callback.cls.http_method_names)
return [method.upper() for method in actions & http_method_names]
return [