commit | 54e54c6877329e105406c48490f218faff59db39 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Tue Sep 04 19:14:14 2001 +0000 |
committer | Guido van Rossum <guido@python.org> | Tue Sep 04 19:14:14 2001 +0000 |
tree | 6bbdf1f6efaa2253af424f59dc9564a5458d6739 | |
parent | b8f22749853cf79bfbe3709309e67d1a448f4cab [diff] [blame] |
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.
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 @@ 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: