mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-24 06:55:26 -07:00
Removed deprecated getdefaultlocale (#2345)
This commit is contained in:
parent
7696d031d3
commit
71d7c4dddf
1 changed files with 3 additions and 1 deletions
|
@ -70,7 +70,9 @@ def main():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
locale.setlocale(locale.LC_ALL, "")
|
locale.setlocale(locale.LC_ALL, "")
|
||||||
plexpy.SYS_LANGUAGE, plexpy.SYS_ENCODING = locale.getdefaultlocale()
|
plexpy.SYS_LANGUAGE, plexpy.SYS_ENCODING = locale.getlocale()
|
||||||
|
if not plexpy.SYS_ENCODING:
|
||||||
|
plexpy.SYS_ENCODING = locale.getencoding()
|
||||||
except (locale.Error, IOError):
|
except (locale.Error, IOError):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue