diff options
author | Barry Warsaw <barry@python.org> | 2001-07-10 21:44:24 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2001-07-10 21:44:24 (GMT) |
commit | 8e4fa072f7e33f49c000d8edff172920bfd0f5ff (patch) | |
tree | 4d163401d660a10b28c78d92e052da33aa27e142 /Tools/pynche/PyncheWidget.py | |
parent | 60e1886e872f25fe3518e0ff48bbe50f59c3be4c (diff) | |
download | cpython-8e4fa072f7e33f49c000d8edff172920bfd0f5ff.zip cpython-8e4fa072f7e33f49c000d8edff172920bfd0f5ff.tar.gz cpython-8e4fa072f7e33f49c000d8edff172920bfd0f5ff.tar.bz2 |
De-string-module-ification.
Diffstat (limited to 'Tools/pynche/PyncheWidget.py')
-rw-r--r-- | Tools/pynche/PyncheWidget.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Tools/pynche/PyncheWidget.py b/Tools/pynche/PyncheWidget.py index a7a0666..8550078 100644 --- a/Tools/pynche/PyncheWidget.py +++ b/Tools/pynche/PyncheWidget.py @@ -6,7 +6,6 @@ It is used to bring up other windows. import sys import os -import string from Tkinter import * import tkMessageBox import tkFileDialog @@ -221,9 +220,9 @@ class Helpwin: fp = open(readmefile) contents = fp.read() # wax the last page, it contains Emacs cruft - i = string.rfind(contents, '\f') + i = contents.rfind('\f') if i > 0: - contents = string.rstrip(contents[:i]) + contents = contents[:i].rstrip() finally: if fp: fp.close() @@ -258,11 +257,11 @@ class PopupViewer: self.__root = root self.__menutext = module.ADDTOVIEW # find the underline character - underline = string.find(module.ADDTOVIEW, '%') + underline = module.ADDTOVIEW.find('%') if underline == -1: underline = 0 else: - self.__menutext = string.replace(module.ADDTOVIEW, '%', '', 1) + self.__menutext = module.ADDTOVIEW.replace('%', '', 1) self.__underline = underline self.__window = None |