summaryrefslogtreecommitdiff
path: root/Lib/tokenize.py
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>2001-07-20 19:05:50 +0000
committerFred Drake <fdrake@acm.org>2001-07-20 19:05:50 +0000
commit6510dd017142e13690cbc8ecc732fbacd5f55d48 (patch)
treeebfd94c204657b3a8d928afd23b4dd944490554a /Lib/tokenize.py
parentd72122f13faccda7cea8b76674acda276243d0b5 (diff)
downloadcpython-6510dd017142e13690cbc8ecc732fbacd5f55d48.tar.gz
Use string.ascii_letters instead of string.letters (SF bug #226706).
Diffstat (limited to 'Lib/tokenize.py')
-rw-r--r--Lib/tokenize.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/tokenize.py b/Lib/tokenize.py
index cbe45529c2..33c5e41d7a 100644
--- a/Lib/tokenize.py
+++ b/Lib/tokenize.py
@@ -133,7 +133,7 @@ def tokenize_loop(readline, tokeneater):
def generate_tokens(readline):
lnum = parenlev = continued = 0
- namechars, numchars = string.letters + '_', string.digits
+ namechars, numchars = string.ascii_letters + '_', '0123456789'
contstr, needcont = '', 0
contline = None
indents = [0]