mirror of
https://github.com/python/cpython.git
synced 2025-10-27 11:44:39 +00:00
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:
parent
6a0477b099
commit
aaab30e00c
70 changed files with 271 additions and 346 deletions
|
|
@ -60,7 +60,6 @@
|
|||
|
||||
import sys
|
||||
import getopt
|
||||
import string
|
||||
from Tkinter import *
|
||||
import tktools
|
||||
import webchecker
|
||||
|
|
@ -86,7 +85,7 @@ def main():
|
|||
extra_roots = []
|
||||
for o, a in opts:
|
||||
if o == '-m':
|
||||
webchecker.maxpage = string.atoi(a)
|
||||
webchecker.maxpage = int(a)
|
||||
if o == '-q':
|
||||
webchecker.verbose = 0
|
||||
if o == '-v':
|
||||
|
|
@ -169,7 +168,7 @@ def __init__(self, parent, root=webchecker.DEFROOT):
|
|||
self.root_seed = None
|
||||
webchecker.Checker.__init__(self)
|
||||
if root:
|
||||
root = string.strip(str(root))
|
||||
root = str(root).strip()
|
||||
if root:
|
||||
self.suggestroot(root)
|
||||
self.newstatus()
|
||||
|
|
@ -189,7 +188,7 @@ def suggestroot(self, root):
|
|||
|
||||
def enterroot(self, event=None):
|
||||
root = self.__rootentry.get()
|
||||
root = string.strip(root)
|
||||
root = root.strip()
|
||||
if root:
|
||||
self.__checking.config(text="Adding root "+root)
|
||||
self.__checking.update_idletasks()
|
||||
|
|
@ -353,7 +352,7 @@ def doubleclick(self, event):
|
|||
def selectedindices(self):
|
||||
l = self.list.curselection()
|
||||
if not l: return []
|
||||
return map(string.atoi, l)
|
||||
return map(int, l)
|
||||
|
||||
def insert(self, url):
|
||||
if url not in self.items:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue