[Python-checkins] CVS: python/dist/src/Lib Cookie.py,1.9,1.10 cmd.py,1.23,1.24 dospath.py,1.22,1.23 ntpath.py,1.37,1.38 tokenize.py,1.25,1.26
Fred L. Drake
fdrake@users.sourceforge.net
Fri, 20 Jul 2001 11:54:46 -0700
Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv30933/Lib
Modified Files:
Cookie.py cmd.py dospath.py ntpath.py tokenize.py
Log Message:
Use string.ascii_letters instead of string.letters (SF bug #226706).
Index: Cookie.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/Cookie.py,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -r1.9 -r1.10
*** Cookie.py 2001/05/13 00:19:31 1.9
--- Cookie.py 2001/07/20 18:54:44 1.10
***************
*** 250,254 ****
# _Translator hash-table for fast quoting
#
! _LegalChars = string.letters + string.digits + "!#$%&'*+-.^_`|~"
_Translator = {
'\000' : '\\000', '\001' : '\\001', '\002' : '\\002',
--- 250,254 ----
# _Translator hash-table for fast quoting
#
! _LegalChars = string.ascii_letters + string.digits + "!#$%&'*+-.^_`|~"
_Translator = {
'\000' : '\\000', '\001' : '\\001', '\002' : '\\002',
Index: cmd.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/cmd.py,v
retrieving revision 1.23
retrieving revision 1.24
diff -C2 -r1.23 -r1.24
*** cmd.py 2001/03/22 21:59:20 1.23
--- cmd.py 2001/07/20 18:54:44 1.24
***************
*** 41,45 ****
PROMPT = '(Cmd) '
! IDENTCHARS = string.letters + string.digits + '_'
class Cmd:
--- 41,45 ----
PROMPT = '(Cmd) '
! IDENTCHARS = string.ascii_letters + string.digits + '_'
class Cmd:
Index: dospath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/dospath.py,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -r1.22 -r1.23
*** dospath.py 2001/01/20 23:34:12 1.22
--- dospath.py 2001/07/20 18:54:44 1.23
***************
*** 242,246 ****
return path
import string
! varchars = string.letters + string.digits + '_-'
res = ''
index = 0
--- 242,246 ----
return path
import string
! varchars = string.ascii_letters + string.digits + "_-"
res = ''
index = 0
Index: ntpath.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/ntpath.py,v
retrieving revision 1.37
retrieving revision 1.38
diff -C2 -r1.37 -r1.38
*** ntpath.py 2001/07/19 17:18:18 1.37
--- ntpath.py 2001/07/20 18:54:44 1.38
***************
*** 335,339 ****
return path
import string
! varchars = string.letters + string.digits + '_-'
res = ''
index = 0
--- 335,339 ----
return path
import string
! varchars = string.ascii_letters + string.digits + '_-'
res = ''
index = 0
Index: tokenize.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/tokenize.py,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -r1.25 -r1.26
*** tokenize.py 2001/07/15 21:08:29 1.25
--- tokenize.py 2001/07/20 18:54:44 1.26
***************
*** 134,138 ****
def generate_tokens(readline):
lnum = parenlev = continued = 0
! namechars, numchars = string.letters + '_', string.digits
contstr, needcont = '', 0
contline = None
--- 134,138 ----
def generate_tokens(readline):
lnum = parenlev = continued = 0
! namechars, numchars = string.ascii_letters + '_', '0123456789'
contstr, needcont = '', 0
contline = None