changeset: 105969:2b6bdd6cd3f8 branch: 3.5 parent: 105965:1aba7cbbcc27 user: Berker Peksag date: Tue Jan 03 03:48:04 2017 +0300 files: Lib/inspect.py description: Issue #15812: Delete redundant max(start, 0) Noticed by Serhiy Storchaka. diff -r 1aba7cbbcc27 -r 2b6bdd6cd3f8 Lib/inspect.py --- a/Lib/inspect.py Tue Jan 03 03:34:15 2017 +0300 +++ b/Lib/inspect.py Tue Jan 03 03:48:04 2017 +0300 @@ -1416,7 +1416,6 @@ except OSError: lines = index = None else: - start = max(start, 0) start = max(0, min(start, len(lines) - context)) lines = lines[start:start+context] index = lineno - 1 - start