Another one

This commit is contained in:
Florian Bruhin 2017-08-23 09:37:51 +02:00
parent df909ca75b
commit 074cc1b723

View File

@ -131,7 +131,7 @@ def report(items):
key=lambda e: (e.filename.lower(), e.first_lineno)):
relpath = os.path.relpath(item.filename)
path = relpath if not relpath.startswith('..') else item.filename
output.append("{}:{}: Unused {} '{}'".format(path, item.lineno,
output.append("{}:{}: Unused {} '{}'".format(path, item.first_lineno,
item.typ, item.name))
return output