Skip to content
Myr

fixed typo

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

authored by ThomasWaldmann · committed by ThomasWaldmann · parent c8663e8 · 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:docs/patterns/urlprocessors.rst+1 added-1 removed
30 unmodified lines
31 def about(lang_code):32 g.lang_code = lang_code33 ...3435This is an awful lot of reptition as you have to handle the language code35This is an awful lot of repetition as you have to handle the language code36setting on the :data:`~flask.g` object yourself in every single function.37Sure, a decorator could be used to simplify this, but if you want to38generate URLs from one function to another you would have to still provide39the language code explicitly which can be annoying.
87 unmodified lines