Browse Source

Merge pull request #455 from jparise/methodfuncs-iter

Remove an unused iteration variable.
pull/458/merge
Armin Ronacher 13 years ago
parent
commit
85e2857ed4
  1. 2
      flask/views.py

2
flask/views.py

@ -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

Loading…
Cancel
Save