Skip to content
Myr

Remove an unused iteration variable.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

We can just iterate over the namespace dictionary's keys here. We don't need its values.

authored by Jon Parise · committed by Jon Parise · parent eac350d · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:flask/views.py+1 added-1 removed
105 unmodified lines
106 def __new__(cls, name, bases, d):107 rv = type.__new__(cls, name, bases, d)108 if 'methods' not in d:109 methods = set(rv.methods or [])110 for key, value in d.iteritems():110 for key in d:111 if key in http_method_funcs:112 methods.add(key.upper())113 # if we have no method at all in there we don't want to114 # add a method list. (This is for instance the case for
36 unmodified lines