From 9c436fb5d0b5aaca87ff864637e7c82e8a2e2b74 Mon Sep 17 00:00:00 2001 From: Keith Cirkel Date: Wed, 16 Mar 2016 23:32:10 +0000 Subject: [PATCH] fix a few errors in the .test.py --- .test.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.test.py b/.test.py index 78b241c3a..4ea221a62 100755 --- a/.test.py +++ b/.test.py @@ -61,7 +61,7 @@ def check_file(file_full_path): match = re.search("[^>]+)>(?P[^<]+)[^>]+)>", line) if match is not None: if match.group('lho_tag') != match.group('rho_tag'): - error('%s includes mismatched metatags: %s', (file_full_path, line)) + error('%s includes mismatched metatags: %s' % (file_full_path, line)) else: metadata[match.group('lho_tag')] = match.group('value') @@ -98,12 +98,12 @@ def check_file(file_full_path): dirs.remove(d) elif files[0] == '--pr': - output = subprocess.check_output('git diff --name-only upstream/master..HEAD | cat', shell=True) + output = subprocess.check_output('git diff --name-only origin/master..HEAD | cat', shell=True) files = output.strip().split('\n') for file in files: file_name, file_ext = os.path.splitext(file) - if any('.' in s for s in (file.split('/')[1:-1])) or file_ext == '.md': + if any(s[0] == '.' for s in (file.split('/')[1:])) or file_ext == '.md': debug('skipping file %s' % file) else: debug('checking file %s' % file)