]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Merge PyIdle changes:
authorKurt B. Kaiser <kbk@shore.net>
Wed, 18 Sep 2002 03:14:11 +0000 (03:14 +0000)
committerKurt B. Kaiser <kbk@shore.net>
Wed, 18 Sep 2002 03:14:11 +0000 (03:14 +0000)
Rev 1.3 doerwalter
(string methods)

Lib/idlelib/SearchEngine.py

index e37975104abcf349bec3bf1aa10b9b25f89c94ba..cc40a00c50f04b5103a1d172596446e7200efde9 100644 (file)
@@ -1,4 +1,3 @@
-import string
 import re
 from Tkinter import *
 import tkMessageBox
@@ -175,7 +174,7 @@ class SearchEngine:
                 wrapped = 1
                 wrap = 0
                 pos = text.index("end-1c")
-                line, col = map(int, string.split(pos, "."))
+                line, col = map(int, pos.split("."))
             chars = text.get("%d.0" % line, "%d.0" % (line+1))
             col = len(chars) - 1
         return None
@@ -217,5 +216,5 @@ def get_selection(text):
 # Helper to parse a text index into a (line, col) tuple.
 
 def get_line_col(index):
-    line, col = map(int, string.split(index, ".")) # Fails on invalid index
+    line, col = map(int, index.split(".")) # Fails on invalid index
     return line, col