mirror of https://github.com/python/cpython
Issue #15812: Merge from 3.6
This commit is contained in:
commit
b03beefb24
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue