Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pallets/flask
/ pull_lang_code
Function
pull_lang_code
tests/test_basic.py:1618–1619 ·
view source on GitHub ↗
(endpoint, values)
Source
from the content-addressed store, hash-verified
1616
1617
@app.url_value_preprocessor
1618
def
pull_lang_code(endpoint, values):
1619
flask.g.lang_code = values.pop(
"lang_code"
, None)
1620
1621
@app.route(
"/<lang_code>/"
)
1622
def
index():
Callers
nothing calls this directly
Calls
1
pop
Method · 0.45
Tested by
no test coverage detected