From 873c693c4ea0839208003394c2ba5ae7e7cf4629 Mon Sep 17 00:00:00 2001 From: tobes Date: Tue, 7 May 2013 14:04:50 +0100 Subject: [PATCH] Coding Standard: rename for pep8 --- ckan/tests/test_coding_standards.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ckan/tests/test_coding_standards.py b/ckan/tests/test_coding_standards.py index edbd500fe48..1fbb3dd25ff 100644 --- a/ckan/tests/test_coding_standards.py +++ b/ckan/tests/test_coding_standards.py @@ -272,13 +272,13 @@ def setup(cls): @classmethod def process(cls): blacklist = cls.CKAN_IMPORTS_BLACKLIST_FILES - re_nasty_import = re.compile(r'^from\s.*\bckan\b(?!\.common).*\bimport') + re_bad_import = re.compile(r'^from\s.*\bckan\b(?!\.common).*\bimport') for path, filename in process_directory(base_path): f = open(path, 'r') count = 1 errors = [] for line in f: - if re_nasty_import.search(line): + if re_bad_import.search(line): errors.append('ln:%s \t%s' % (count, line[:-1])) count += 1 if errors and not filename in blacklist: