Browse Source

Fixed some embarrassing grammar

pull/768/head
Armin Ronacher 12 years ago
parent
commit
dfdcac2292
  1. 2
      flask/blueprints.py

2
flask/blueprints.py

@ -167,7 +167,7 @@ class Blueprint(_PackageBoundObject):
the :func:`url_for` function is prefixed with the name of the blueprint. the :func:`url_for` function is prefixed with the name of the blueprint.
""" """
if endpoint: if endpoint:
assert '.' not in endpoint, "Blueprint endpoint's should not contain dot's" assert '.' not in endpoint, "Blueprint endpoints should not contain dots"
self.record(lambda s: self.record(lambda s:
s.add_url_rule(rule, endpoint, view_func, **options)) s.add_url_rule(rule, endpoint, view_func, **options))

Loading…
Cancel
Save