[Python-checkins] CVS: python/dist/src/Tools/scripts fixheader.py,1.3,1.4 texi2html.py,1.12,1.13

Fred L. Drake fdrake@users.sourceforge.net
2001年7月20日 11:59:23 -0700


Update of /cvsroot/python/python/dist/src/Tools/scripts
In directory usw-pr-cvs1:/tmp/cvs-serv319/scripts
Modified Files:
	fixheader.py texi2html.py 
Log Message:
Use string.ascii_letters instead of string.letters (SF bug #226706).
Index: fixheader.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/fixheader.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** fixheader.py	2001年01月17日 08:48:39	1.3
--- fixheader.py	2001年07月20日 18:59:21	1.4
***************
*** 30,34 ****
 magic = 'Py_'
 for c in file:
! if c in string.letters + string.digits:
 magic = magic + string.upper(c)
 else: magic = magic + '_'
--- 30,34 ----
 magic = 'Py_'
 for c in file:
! if c in string.ascii_letters + string.digits:
 magic = magic + string.upper(c)
 else: magic = magic + '_'
Index: texi2html.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Tools/scripts/texi2html.py,v
retrieving revision 1.12
retrieving revision 1.13
diff -C2 -r1.12 -r1.13
*** texi2html.py	2001年01月17日 08:48:39	1.12
--- texi2html.py	2001年07月20日 18:59:21	1.13
***************
*** 423,427 ****
 raise RuntimeError, 'unexpected funny '+`c`
 start = i
! while i < n and text[i] in string.letters: i = i+1
 if i == start:
 # @ plus non-letter: literal next character
--- 423,427 ----
 raise RuntimeError, 'unexpected funny '+`c`
 start = i
! while i < n and text[i] in string.ascii_letters: i = i+1
 if i == start:
 # @ plus non-letter: literal next character
***************
*** 1261,1265 ****
 if self.itemarg:
 if self.itemarg[0] == '@' and self.itemarg[1:2] and \
! self.itemarg[1] in string.letters:
 args = self.itemarg + '{' + args + '}'
 else:
--- 1261,1265 ----
 if self.itemarg:
 if self.itemarg[0] == '@' and self.itemarg[1:2] and \
! self.itemarg[1] in string.ascii_letters:
 args = self.itemarg + '{' + args + '}'
 else:
***************
*** 1525,1529 ****
 
 # Characters that are perfectly safe in filenames and hyperlinks
! goodchars = string.letters + string.digits + '!@-=+.'
 
 # Replace characters that aren't perfectly safe by dashes
--- 1525,1529 ----
 
 # Characters that are perfectly safe in filenames and hyperlinks
! goodchars = string.ascii_letters + string.digits + '!@-=+.'
 
 # Replace characters that aren't perfectly safe by dashes

AltStyle によって変換されたページ (->オリジナル) /