From ef0501fc7d52ecd265ae60696be40eebf458e71e Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 14 Aug 2017 05:47:05 +0530 Subject: tests: Only error for lines starting with tabs Otherwise we can't even use tabs for testing. --- run_project_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'run_project_tests.py') diff --git a/run_project_tests.py b/run_project_tests.py index 71770f36c..426e2c73d 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -585,7 +585,7 @@ def check_file(fname): with open(fname, 'rb') as f: lines = f.readlines() for line in lines: - if b'\t' in line: + if line.startswith(b'\t'): print("File %s contains a literal tab on line %d. Only spaces are permitted." % (fname, linenum)) sys.exit(1) if b'\r' in line: -- cgit v1.2.3