mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
base62() should not be locale-dependent
This commit is contained in:
parent
e0b7bca155
commit
265b6b990d
1 changed files with 1 additions and 1 deletions
|
@ -194,7 +194,7 @@ def maxID(db):
|
|||
# used in ankiweb
|
||||
def base62(num, extra=""):
|
||||
s = string
|
||||
table = s.letters + s.digits + extra
|
||||
table = s.ascii_letters + s.digits + extra
|
||||
buf = ""
|
||||
while num:
|
||||
num, i = divmod(num, len(table))
|
||||
|
|
Loading…
Reference in a new issue