diff options
| author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-08-14 05:47:05 +0530 |
|---|---|---|
| committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-09-20 13:36:42 +0530 |
| commit | ef0501fc7d52ecd265ae60696be40eebf458e71e (patch) | |
| tree | 040a6aab0316eb04769af6c559d7fda3307b9ca2 /run_project_tests.py | |
| parent | 20991c06696d25c495f0003ea37a66027c90e789 (diff) | |
| download | meson-ef0501fc7d52ecd265ae60696be40eebf458e71e.tar.gz | |
tests: Only error for lines starting with tabs
Otherwise we can't even use tabs for testing.
Diffstat (limited to 'run_project_tests.py')
| -rwxr-xr-x | run_project_tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |
