mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +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
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue