From: Berker Peksag Date: Tue, 3 Jan 2017 00:48:04 +0000 (+0300) Subject: Issue #15812: Delete redundant max(start, 0) X-Git-Tag: v3.6.1rc1~216^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=225b01b840939499089d3c3a4abaf15afde85679;p=thirdparty%2FPython%2Fcpython.git Issue #15812: Delete redundant max(start, 0) Noticed by Serhiy Storchaka. --- diff --git a/Lib/inspect.py b/Lib/inspect.py index 6b9e0b00b543..9f9fcfef47c1 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -1416,7 +1416,6 @@ def getframeinfo(frame, context=1): 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