Fix off by one error in line number enumeration

This commit is contained in:
Guy Kisel 2015-03-13 16:32:21 -07:00
parent 779a42919a
commit 86d8446800

View file

@ -22,7 +22,7 @@ def detect_merge_conflict(argv=None):
for i, line in enumerate(inputfile):
for pattern in CONFLICT_PATTERNS:
if line.startswith(pattern):
print(WARNING_MSG.format(pattern, filename, i))
print(WARNING_MSG.format(pattern, filename, i + 1))
retcode = 1
return retcode