Skip to content
Myr

Remove Werkzeug bug workaround from flask/app.py

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

According to the note in the comment, you had to check to make sure that the defaults were not an empty dictionary because of a bug in Werkzeug pre-0.7. Since Flask officially requires 0.7 or greater, we can remove this little workaround.

authored by Robert Picard · committed by Robert Picard · parent 1982c20 · Browse files · 1 file+0 added−5 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+0 added−5 removed

  • other:+0 added−5 removed

1 file+0 added−5 removed

modified:flask/app.py-5 removed
966 unmodified lines
967968 # Add the required methods now.969 methods |= required_methods970971 # due to a werkzeug bug we need to make sure that the defaults are972 # None if they are an empty dictionary. This should not be necessary973 # with Werkzeug 0.7974 options['defaults'] = options.get('defaults') or None975971 rule = self.url_rule_class(rule, methods=methods, **options)972 rule.provide_automatic_options = provide_automatic_options973974 self.url_map.add(rule)
863 unmodified lines