summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2002-09-23 14:06:24 +0000
committerRaymond Hettinger <python@rcn.com>2002-09-23 14:06:24 +0000
commit1d429f24643ddeabedeb01acb8bc734f5c3b910d (patch)
tree84431dd146168ce77f16722fbbdd05d17ce86a27 /Tools
parent9eda652c44be8c5ad811bd2e5e64f3c7f9177e99 (diff)
downloadcpython-git-1d429f24643ddeabedeb01acb8bc734f5c3b910d.tar.gz
Backport:
Properly fix SF bug #507298 (Gregor Lingl): shellpython2.2 -Qnew smart indent error Use // where int division is intended.
Diffstat (limited to 'Tools')
-rw-r--r--Tools/idle/EditorWindow.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/idle/EditorWindow.py b/Tools/idle/EditorWindow.py
index a6bf090df3..35395310a6 100644
--- a/Tools/idle/EditorWindow.py
+++ b/Tools/idle/EditorWindow.py
@@ -466,7 +466,7 @@ class EditorWindow:
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):