mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
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.
This commit is contained in:
parent
b8f2274985
commit
54e54c6877
19 changed files with 38 additions and 38 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue