mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -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
|
# used in ankiweb
|
||||||
def base62(num, extra=""):
|
def base62(num, extra=""):
|
||||||
s = string
|
s = string
|
||||||
table = s.letters + s.digits + extra
|
table = s.ascii_letters + s.digits + extra
|
||||||
buf = ""
|
buf = ""
|
||||||
while num:
|
while num:
|
||||||
num, i = divmod(num, len(table))
|
num, i = divmod(num, len(table))
|
||||||
|
|
Loading…
Reference in a new issue