mirror of
https://github.com/python/cpython.git
synced 2025-07-08 03:45:36 +00:00
Use string.ascii_letters instead of string.letters (SF bug #226706).
This commit is contained in:
parent
f69868f304
commit
79e75e1916
15 changed files with 17 additions and 18 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue