summaryrefslogtreecommitdiffstats
path: root/Mac
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-20 19:05:50 (GMT)
committerFred Drake <fdrake@acm.org>2001-07-20 19:05:50 (GMT)
commit79e75e1916c33ee8e3de4c1b6c38221f2dba315c (patch)
tree96e3e40993ba8b5e4123470493e36797b3b10fdd /Mac
parentf69868f304cb2198e4f43e73d5d8873d7222cda8 (diff)
downloadcpython-79e75e1916c33ee8e3de4c1b6c38221f2dba315c.zip
cpython-79e75e1916c33ee8e3de4c1b6c38221f2dba315c.tar.gz
cpython-79e75e1916c33ee8e3de4c1b6c38221f2dba315c.tar.bz2
Use string.ascii_letters instead of string.letters (SF bug #226706).
Diffstat (limited to 'Mac')
-rw-r--r--Mac/Tools/IDE/PyEdit.py3
-rw-r--r--Mac/scripts/gensuitemodule.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/Mac/Tools/IDE/PyEdit.py b/Mac/Tools/IDE/PyEdit.py
index 10f583f..d8539c1 100644
--- a/Mac/Tools/IDE/PyEdit.py
+++ b/Mac/Tools/IDE/PyEdit.py
@@ -25,8 +25,7 @@ else:
haveThreading = Wthreading.haveThreading
_scriptuntitledcounter = 1
-# _wordchars = string.letters + string.digits + "_"
-_wordchars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_'
+_wordchars = string.ascii_letters + string.digits + "_"
runButtonLabels = ["Run all", "Stop!"]
diff --git a/Mac/scripts/gensuitemodule.py b/Mac/scripts/gensuitemodule.py
index b68def7..6549ed2 100644
--- a/Mac/scripts/gensuitemodule.py
+++ b/Mac/scripts/gensuitemodule.py
@@ -825,7 +825,7 @@ def identify(str):
if not str:
return "_empty_ae_name"
rv = ''
- ok = string.letters + '_'
+ ok = string.ascii_letters + '_'
ok2 = ok + string.digits
for c in str:
if c in ok: