diff --git a/scripts/dev/run_vulture.py b/scripts/dev/run_vulture.py index ae5ca76fa..41925be25 100755 --- a/scripts/dev/run_vulture.py +++ b/scripts/dev/run_vulture.py @@ -127,7 +127,8 @@ def report(items): properties which get used for the items. """ output = [] - for item in sorted(items, key=lambda e: (e.filename.lower(), e.lineno)): + for item in sorted(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,