Use string.ascii_letters instead of string.letters (SF bug #226706).

This commit is contained in:
Fred Drake 2001-07-20 19:05:50 +00:00
parent f69868f304
commit 79e75e1916
15 changed files with 17 additions and 18 deletions

View file

@ -29,7 +29,7 @@ def process(file):
sys.stderr.write('Processing %s ...\n' % file)
magic = 'Py_'
for c in file:
if c in string.letters + string.digits:
if c in string.ascii_letters + string.digits:
magic = magic + string.upper(c)
else: magic = magic + '_'
sys.stdout = f