Fix unsupported locale errors on Linux
This commit is contained in:
parent
4779b66af1
commit
81df1505fd
2 changed files with 18 additions and 15 deletions
|
|
@ -50,8 +50,7 @@ def get_authorization(auth):
|
|||
return "SAPISIDHASH " + unix_timestamp + "_" + sha_1.hexdigest()
|
||||
|
||||
|
||||
def to_int(string, language):
|
||||
locale.setlocale(locale.LC_ALL, language)
|
||||
def to_int(string):
|
||||
number = string.split(' ')[0]
|
||||
return locale.atoi(number)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue