mirror of
https://github.com/python/cpython.git
synced 2025-08-27 04:05:34 +00:00
Remove string.{letters,lowercase,uppercase}.
This commit is contained in:
parent
5424df2f7e
commit
967f1e3b85
8 changed files with 17 additions and 46 deletions
|
@ -2000,7 +2000,7 @@ def fixfunnychars(addr):
|
|||
def increment(s):
|
||||
if not s:
|
||||
return '1'
|
||||
for sequence in string.digits, string.lowercase, string.uppercase:
|
||||
for sequence in string.digits, string.ascii_lowercase, string.ascii_uppercase:
|
||||
lastc = s[-1]
|
||||
if lastc in sequence:
|
||||
i = sequence.index(lastc) + 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue