[FIX] don't use deprecated get_default_locale
This commit is contained in:
parent
22425ec8ff
commit
9d7e6fe8b9
|
|
@ -29,7 +29,7 @@ def get_server_environment():
|
||||||
except Exception:
|
except Exception:
|
||||||
rev_id = "Can not retrieve revison from git or bzr"
|
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:
|
if not os_lang:
|
||||||
os_lang = "NOT SET"
|
os_lang = "NOT SET"
|
||||||
if os.name == "posix" and platform.system() == "Linux":
|
if os.name == "posix" and platform.system() == "Linux":
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue