Issue #15812: Merge from 3.5

This commit is contained in:
Berker Peksag 2017-01-03 03:48:34 +03:00
commit 3f988744b0
1 changed files with 0 additions and 1 deletions

View File

@ -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