Remove an unused iteration variable.

We can just iterate over the namespace dictionary's keys here.  We
don't need its values.
This commit is contained in:
Jon Parise 2012-03-19 22:33:43 -07:00
parent eac350d1e6
commit bb99158c87
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ class MethodViewType(type):
rv = type.__new__(cls, name, bases, d)
if 'methods' not in d:
methods = set(rv.methods or [])
for key, value in d.iteritems():
for key in d:
if key in http_method_funcs:
methods.add(key.upper())
# if we have no method at all in there we don't want to