]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
xrange -> range.
authorGeorg Brandl <georg@python.org>
Sat, 19 Jul 2008 13:53:58 +0000 (13:53 +0000)
committerGeorg Brandl <georg@python.org>
Sat, 19 Jul 2008 13:53:58 +0000 (13:53 +0000)
Lib/idlelib/EditorWindow.py

index de47350b21cbbc242ec8687436bffd8d305466e7..6ce166d239981e91112f64820f6acb8163cd5800 100644 (file)
@@ -289,7 +289,7 @@ class EditorWindow(object):
             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: