From 18c58e6e13f20db9009ff6b04ddf795cd1bbac6e Mon Sep 17 00:00:00 2001 From: Chris McDonough Date: Mon, 25 Oct 2010 15:33:12 -0400 Subject: shorten --- pyramid/fixers/fix_bfg_imports.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/pyramid/fixers/fix_bfg_imports.py b/pyramid/fixers/fix_bfg_imports.py index 94327cd4b..cc3c0faf5 100644 --- a/pyramid/fixers/fix_bfg_imports.py +++ b/pyramid/fixers/fix_bfg_imports.py @@ -167,12 +167,8 @@ class FixBfgImports(fixer_base.BaseFix): if new_name: node.replace(Name(new_name, prefix=bare_name.prefix)) -BFG_NS_RE = ( - r'xmlns\s*?=\s*?[\'\"]http://namespaces\.repoze\.org/bfg[\'\"]') -BFG_IN_ATTR = ( - r'[\'\"]\s*?(repoze\.bfg)(.*?)[\'\"]') - - +BFG_NS_RE = r'xmlns\s*?=\s*?[\'\"]http://namespaces\.repoze\.org/bfg[\'\"]' +BFG_IN_ATTR = r'[\'\"]\s*?(repoze\.bfg)(.*?)[\'\"]' ATTR = re.compile(BFG_IN_ATTR, re.MULTILINE) NS = re.compile(BFG_NS_RE, re.MULTILINE) -- cgit v1.2.3