Skip to content
Myr

Merge pull request #455 from jparise/methodfuncs-iter

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

Remove an unused iteration variable.

authored by Armin Ronacher · committed by Armin Ronacher · parents 38187bc, bb99158 · 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