summaryrefslogtreecommitdiffstats
path: root/Tools
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2007-08-14 09:23:10 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2007-08-14 09:23:10 (GMT)
commit967f1e3b85ac239d6ae9900a62304392682131a7 (patch)
tree8e39c3f8fa0612742e71b1ac580c2729cf928195 /Tools
parent5424df2f7ee8cc0e8d177f0c035120a24addd455 (diff)
downloadcpython-967f1e3b85ac239d6ae9900a62304392682131a7.zip
cpython-967f1e3b85ac239d6ae9900a62304392682131a7.tar.gz
cpython-967f1e3b85ac239d6ae9900a62304392682131a7.tar.bz2
Remove string.{letters,lowercase,uppercase}.
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/modulator/modulator.py4
-rwxr-xr-xTools/scripts/texi2html.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/Tools/modulator/modulator.py b/Tools/modulator/modulator.py
index a06306b..d4b8510 100755
--- a/Tools/modulator/modulator.py
+++ b/Tools/modulator/modulator.py
@@ -30,8 +30,8 @@ import string
oops = 'oops'
-IDENTSTARTCHARS = string.letters + '_'
-IDENTCHARS = string.letters + string.digits + '_'
+IDENTSTARTCHARS = string.ascii_letters + '_'
+IDENTCHARS = string.ascii_letters + string.digits + '_'
# Check that string is a legal C identifier
def checkid(str):
diff --git a/Tools/scripts/texi2html.py b/Tools/scripts/texi2html.py
index e5e292d..37d6e91 100755
--- a/Tools/scripts/texi2html.py
+++ b/Tools/scripts/texi2html.py
@@ -2000,7 +2000,7 @@ def fixfunnychars(addr):
def increment(s):
if not s:
return '1'
- for sequence in string.digits, string.lowercase, string.uppercase:
+ for sequence in string.digits, string.ascii_lowercase, string.ascii_uppercase:
lastc = s[-1]
if lastc in sequence:
i = sequence.index(lastc) + 1