diff options
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 6183b0e..f57ba37 100644 --- a/Lib/inspect.py +++ b/Lib/inspect.py @@ -590,7 +590,7 @@ def getframeinfo(frame, context=1): filename = getsourcefile(frame) lineno = getlineno(frame) if context > 0: - start = lineno - 1 - context/2 + start = lineno - 1 - context//2 try: lines, lnum = findsource(frame) except IOError: |