From 30dbccd3468ae17229c92fd1299094a9922ae56b Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Fri, 19 Apr 2013 19:03:29 +0300 Subject: [PATCH] Line numbers start from 1. --- run_tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run_tests.py b/run_tests.py index 003bc5599..e89346e16 100755 --- a/run_tests.py +++ b/run_tests.py @@ -94,7 +94,7 @@ def run_tests(): def check_file(fname): if fname.endswith('parsetab.py'): # Autogenerated return True - linenum = 0 + linenum = 1 for line in open(fname, 'rb').readlines(): if b'\t' in line: print("File %s contains a literal tab on line %d. Only spaces are permitted." % (fname, linenum))