Browse Source

app.modules -> app.blueprints

pull/262/head
Armin Ronacher 14 years ago
parent
commit
10104e98cf
  1. 3
      scripts/flask-07-upgrade.py

3
scripts/flask-07-upgrade.py

@ -45,7 +45,8 @@ _module_constructor_re = re.compile(r'([a-zA-Z0-9_][a-zA-Z0-9_]*)\s*=\s*Module'
_mod_route_re = re.compile(r'([a-zA-Z0-9_][a-zA-Z0-9_]*)\.route') _mod_route_re = re.compile(r'([a-zA-Z0-9_][a-zA-Z0-9_]*)\.route')
_blueprint_related = [ _blueprint_related = [
(re.compile(r'request\.module'), 'request.blueprint'), (re.compile(r'request\.module'), 'request.blueprint'),
(re.compile(r'register_module'), 'register_blueprint') (re.compile(r'register_module'), 'register_blueprint'),
(re.compile(r'app\.modules'), 'app.blueprints')
] ]

Loading…
Cancel
Save