Check for set_trace in scripts

This commit is contained in:
Florian Bruhin 2014-06-03 14:52:53 +02:00
parent a4c3ce6bdc
commit 70575d61f9

View File

@ -190,6 +190,10 @@ def _check_file(fn):
elif b' \t' in line or b'\t ' in line:
print("Found tab-space mix in {}".format(fn))
return False
elif b'set_trace()' in line and not (
fn.endswith('debug.py') or fn.endswith('run_checks.py')):
print("Found set_trace in {}".format(fn))
return False
return True