From 17d1ade6b956a1dc508f096f951fc52800b2a20e Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sun, 5 Jun 2011 14:37:57 +0200 Subject: [PATCH] Alternative names for app --- scripts/flask-07-upgrade.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/flask-07-upgrade.py b/scripts/flask-07-upgrade.py index ab530e5e..5398584e 100644 --- a/scripts/flask-07-upgrade.py +++ b/scripts/flask-07-upgrade.py @@ -46,7 +46,7 @@ _mod_route_re = re.compile(r'([a-zA-Z0-9_][a-zA-Z0-9_]*)\.route') _blueprint_related = [ (re.compile(r'request\.module'), 'request.blueprint'), (re.compile(r'register_module'), 'register_blueprint'), - (re.compile(r'app\.modules'), 'app.blueprints') + (re.compile(r'(app|application)\.modules'), '\\1.blueprints') ]