mirror of
https://github.com/python/cpython.git
synced 2025-07-19 01:05:26 +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
|
@ -62,7 +62,7 @@ def _split(p):
|
|||
s= q # find end of main FS name, not including special field
|
||||
else:
|
||||
for c in p[dash:s]:
|
||||
if c not in string.letters:
|
||||
if c not in string.ascii_letters:
|
||||
q= 0
|
||||
break # disallow invalid non-special-field characters in FS name
|
||||
r= q
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue