From 70575d61f9372a4789e85a0c199626a14fcf6204 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Tue, 3 Jun 2014 14:52:53 +0200 Subject: [PATCH] Check for set_trace in scripts --- scripts/run_checks.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/run_checks.py b/scripts/run_checks.py index 2224cbd56..8915fffd6 100755 --- a/scripts/run_checks.py +++ b/scripts/run_checks.py @@ -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