Skip to content

Commit

Permalink
Coding Standard: rename for pep8
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed May 7, 2013
1 parent 87d955c commit 873c693
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/tests/test_coding_standards.py
Expand Up @@ -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:
Expand Down

0 comments on commit 873c693

Please sign in to comment.