Commit 225b01b8 authored by Berker Peksag's avatar Berker Peksag

Issue #15812: Delete redundant max(start, 0)

Noticed by Serhiy Storchaka.
parent 7b4e5510
...@@ -1416,7 +1416,6 @@ def getframeinfo(frame, context=1): ...@@ -1416,7 +1416,6 @@ def getframeinfo(frame, context=1):
except OSError: except OSError:
lines = index = None lines = index = None
else: else:
start = max(start, 0)
start = max(0, min(start, len(lines) - context)) start = max(0, min(start, len(lines) - context))
lines = lines[start:start+context] lines = lines[start:start+context]
index = lineno - 1 - start index = lineno - 1 - start
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment