aboutsummaryrefslogtreecommitdiff
path: root/contrib/check_GNU_style_lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/check_GNU_style_lib.py')
-rwxr-xr-xcontrib/check_GNU_style_lib.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/contrib/check_GNU_style_lib.py b/contrib/check_GNU_style_lib.py
index f680983..8b930ef 100755
--- a/contrib/check_GNU_style_lib.py
+++ b/contrib/check_GNU_style_lib.py
@@ -279,7 +279,9 @@ def check_GNU_style_file(file, format):
patch = PatchSet(file)
for pfile in patch.added_files + patch.modified_files:
- t = pfile.target_file.lstrip('b/')
+ t = pfile.target_file
+ if t.startswith('b/'):
+ t = t[2:]
# Skip testsuite files
if 'testsuite' in t or t.endswith('.py'):
continue