diff --git a/Lib/idlelib/EditorWindow.py b/Lib/idlelib/EditorWindow.py index de47350b21c..6ce166d2399 100644 --- a/Lib/idlelib/EditorWindow.py +++ b/Lib/idlelib/EditorWindow.py @@ -289,7 +289,7 @@ def home_callback(self, event): insertpt = int(self.text.index("iomark").split(".")[1]) else: line = self.text.get("insert linestart", "insert lineend") - for insertpt in xrange(len(line)): + for insertpt in range(len(line)): if line[insertpt] not in (' ','\t'): break else: