From 54e54c6877329e105406c48490f218faff59db39 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 4 Sep 2001 19:14:14 +0000 Subject: The first batch of changes recommended by the fixdiv tool. These are mostly changes of / operators into //. Once or twice I did more or less than recommended. --- Lib/inspect.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Lib/inspect.py') diff --git a/Lib/inspect.py b/Lib/inspect.py index 6183b0ee5b..f57ba374e6 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: -- cgit v1.2.1