summaryrefslogtreecommitdiffstats
path: root/Lib/string.py
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 /Lib/string.py
parent5424df2f7ee8cc0e8d177f0c035120a24addd455 (diff)
downloadcpython-967f1e3b85ac239d6ae9900a62304392682131a7.zip
cpython-967f1e3b85ac239d6ae9900a62304392682131a7.tar.gz
cpython-967f1e3b85ac239d6ae9900a62304392682131a7.tar.bz2
Remove string.{letters,lowercase,uppercase}.
Diffstat (limited to 'Lib/string.py')
-rw-r--r--Lib/string.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/string.py b/Lib/string.py
index 51b2067..87073aa 100644
--- a/Lib/string.py
+++ b/Lib/string.py
@@ -16,17 +16,14 @@ printable -- a string containing all characters considered printable
# Some strings for ctype-style character classification
whitespace = ' \t\n\r\v\f'
-lowercase = 'abcdefghijklmnopqrstuvwxyz'
-uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
-letters = lowercase + uppercase
-ascii_lowercase = lowercase
-ascii_uppercase = uppercase
+ascii_lowercase = 'abcdefghijklmnopqrstuvwxyz'
+ascii_uppercase = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
ascii_letters = ascii_lowercase + ascii_uppercase
digits = '0123456789'
hexdigits = digits + 'abcdef' + 'ABCDEF'
octdigits = '01234567'
punctuation = """!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~"""
-printable = digits + letters + punctuation + whitespace
+printable = digits + ascii_letters + punctuation + whitespace
# Case conversion helpers
# Use str to convert Unicode literal in case of -U