mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Issue #15812: Delete redundant max(start, 0)
Noticed by Serhiy Storchaka.
This commit is contained in:
parent
7b4e551091
commit
225b01b840
1 changed files with 0 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue