Skip to content

Commit b6116c1

Browse files
committed
Remove Werkzeug bug workaround from flask/app.py
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.
1 parent 1982c20 commit b6116c1

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

flask/app.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -968,11 +968,6 @@ def index():
968968
# Add the required methods now.
969969
methods |= required_methods
970970

971-
# due to a werkzeug bug we need to make sure that the defaults are
972-
# None if they are an empty dictionary. This should not be necessary
973-
# with Werkzeug 0.7
974-
options['defaults'] = options.get('defaults') or None
975-
976971
rule = self.url_rule_class(rule, methods=methods, **options)
977972
rule.provide_automatic_options = provide_automatic_options
978973

0 commit comments

Comments
 (0)