From 225b01b840939499089d3c3a4abaf15afde85679 Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Tue, 3 Jan 2017 03:48:04 +0300 Subject: [PATCH] Issue #15812: Delete redundant max(start, 0) Noticed by Serhiy Storchaka. --- Lib/inspect.py | 1 - 1 file changed, 1 deletion(-) diff --git a/Lib/inspect.py b/Lib/inspect.py index 6b9e0b00b54..9f9fcfef47c 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