diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2017-01-02 03:59:12 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2017-01-02 03:59:12 (GMT) |
commit | 01debaccdd1042ecff474637bd8905d6ec3efd60 (patch) | |
tree | 34b44a52f9f0c8c913435fa351fd99b2a173300e /Lib/inspect.py | |
parent | 5430293fdf286b33f2370d15705ee4339c81e82c (diff) | |
parent | ff0e3b7a54673791bb724be9679c85a4feb7468c (diff) | |
download | cpython-01debaccdd1042ecff474637bd8905d6ec3efd60.zip cpython-01debaccdd1042ecff474637bd8905d6ec3efd60.tar.gz cpython-01debaccdd1042ecff474637bd8905d6ec3efd60.tar.bz2 |
Issue #15812: Merge from 3.5
Diffstat (limited to 'Lib/inspect.py')
-rw-r--r-- | Lib/inspect.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/inspect.py b/Lib/inspect.py index e08e9f5..ba7a913 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -1416,7 +1416,7 @@ def getframeinfo(frame, context=1): except OSError: lines = index = None else: - start = max(start, 1) + start = max(start, 0) start = max(0, min(start, len(lines) - context)) lines = lines[start:start+context] index = lineno - 1 - start |