mirror of
https://github.com/python/cpython.git
synced 2025-11-01 14:11:41 +00:00
Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart
indent error Use // where int division is intended. (This breaks IDLE for use with previous Python versions -- I don't care.)
This commit is contained in:
parent
af14289c54
commit
64e9d61a1e
2 changed files with 3 additions and 3 deletions
|
|
@ -465,7 +465,7 @@ def center(self, mark="insert"):
|
|||
top, bot = self.getwindowlines()
|
||||
lineno = self.getlineno(mark)
|
||||
height = bot - top
|
||||
newtop = max(1, lineno - height/2)
|
||||
newtop = max(1, lineno - height//2)
|
||||
text.yview(float(newtop))
|
||||
|
||||
def getwindowlines(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue