Line numbers start from 1.

pull/15/head
Jussi Pakkanen 12 years ago
parent a1d367ba8b
commit 30dbccd346
  1. 2
      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))

Loading…
Cancel
Save