diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-01-03 00:48:04 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-01-03 00:48:04 (GMT) |
commit | 225b01b840939499089d3c3a4abaf15afde85679 (patch) | |
tree | bef4d5d3e7af95cf2630aa06fb23477f97b58b6b /Lib/inspect.py | |
parent | 7b4e55109100d1069e8176d6a84c48ec928f72ad (diff) | |
download | cpython-225b01b840939499089d3c3a4abaf15afde85679.zip cpython-225b01b840939499089d3c3a4abaf15afde85679.tar.gz cpython-225b01b840939499089d3c3a4abaf15afde85679.tar.bz2 |
Issue #15812: Delete redundant max(start, 0)
Noticed by Serhiy Storchaka.
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index 6b9e0b0..9f9fcfe 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 |