diff options
author | Kurt B. Kaiser <kbk@shore.net> | 2002-09-18 03:14:11 (GMT) |
---|---|---|
committer | Kurt B. Kaiser <kbk@shore.net> | 2002-09-18 03:14:11 (GMT) |
commit | d1ec940ffcd88e298d00b2671260e56a2f6c5238 (patch) | |
tree | 1c0e599ba400da4ba9b27c43f29115fc429ce6ae | |
parent | 06a0987fa851ac3683e473c45aa330e0b8df720d (diff) | |
download | cpython-d1ec940ffcd88e298d00b2671260e56a2f6c5238.zip cpython-d1ec940ffcd88e298d00b2671260e56a2f6c5238.tar.gz cpython-d1ec940ffcd88e298d00b2671260e56a2f6c5238.tar.bz2 |
Merge PyIdle changes:
Rev 1.3 doerwalter
(string methods)
-rw-r--r-- | Lib/idlelib/SearchEngine.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/idlelib/SearchEngine.py b/Lib/idlelib/SearchEngine.py index e379751..cc40a00 100644 --- a/Lib/idlelib/SearchEngine.py +++ b/Lib/idlelib/SearchEngine.py @@ -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 |