[FIX] don't use deprecated get_default_locale
This commit is contained in:
parent
d40461b2a7
commit
9a48be74e5
|
|
@ -29,7 +29,7 @@ def get_server_environment():
|
|||
except Exception:
|
||||
rev_id = "Can not retrieve revison from git or bzr"
|
||||
|
||||
os_lang = ".".join([x for x in locale.getdefaultlocale() if x])
|
||||
os_lang = ".".join([x for x in locale.getlocale() if x])
|
||||
if not os_lang:
|
||||
os_lang = "NOT SET"
|
||||
if os.name == "posix" and platform.system() == "Linux":
|
||||
|
|
|
|||
Loading…
Reference in New Issue