Apply diff2.txt from SF patch http://www.python.org/sf/572113

(with one small bugfix in bgen/bgen/scantools.py)

This replaces string module functions with string methods
for the stuff in the Tools directory. Several uses of
string.letters etc. are still remaining.
This commit is contained in:
Walter Dörwald 2002-09-11 20:36:02 +00:00
parent 6a0477b099
commit aaab30e00c
70 changed files with 271 additions and 346 deletions

View file

@ -8,7 +8,6 @@ their respective text boxes, click GO or hit return, and presto.
from Tkinter import *
import Tkinter
import string
import websucker
import sys
import os
@ -150,13 +149,13 @@ class App:
return
self.url_entry.selection_range(0, END)
url = self.url_entry.get()
url = string.strip(url)
url = url.strip()
if not url:
self.top.bell()
self.message("[Error: No URL entered]")
return
self.rooturl = url
dir = string.strip(self.dir_entry.get())
dir = self.dir_entry.get().strip()
if not dir:
self.sucker.savedir = None
else:
@ -184,7 +183,7 @@ class App:
text = self.top.selection_get(selection=t)
except TclError:
continue
text = string.strip(text)
text = text.strip()
if text:
break
if not text: