diff options
| author | Chris McDonough <chrism@plope.com> | 2010-10-25 15:33:12 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2010-10-25 15:33:12 -0400 |
| commit | 18c58e6e13f20db9009ff6b04ddf795cd1bbac6e (patch) | |
| tree | 3b899ace3ad3650e0c96364f7b6de76ecf40742a | |
| parent | 3f92751e15669538fa74f387a2f8a8717bb9e348 (diff) | |
| download | pyramid-18c58e6e13f20db9009ff6b04ddf795cd1bbac6e.tar.gz pyramid-18c58e6e13f20db9009ff6b04ddf795cd1bbac6e.tar.bz2 pyramid-18c58e6e13f20db9009ff6b04ddf795cd1bbac6e.zip | |
shorten
| -rw-r--r-- | pyramid/fixers/fix_bfg_imports.py | 8 |
1 files 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) |
