mirror of
https://github.com/python/cpython.git
synced 2025-09-03 15:31:08 +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
|
@ -241,7 +241,7 @@ def expandvars(path):
|
|||
if '$' not in path:
|
||||
return path
|
||||
import string
|
||||
varchars = string.letters + string.digits + '_-'
|
||||
varchars = string.ascii_letters + string.digits + "_-"
|
||||
res = ''
|
||||
index = 0
|
||||
pathlen = len(path)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue