diff options
author | Justin Mayer <entroP@gmail.com> | 2023-03-27 09:41:46 +0200 |
---|---|---|
committer | Justin Mayer <entroP@gmail.com> | 2023-03-27 09:41:46 +0200 |
commit | 3658b6cadcaf23e113090089596a9db6c2804eda (patch) | |
tree | ecd691e66991e794581194d5bef44d843e4b932f | |
parent | 94cd58125bdce8cb01557ec4b1fb777e5fc6a789 (diff) | |
download | feedgenerator-3658b6cadcaf23e113090089596a9db6c2804eda.tar.gz |
Replace deprecated getdefaultlocale() with getlocale()
-rw-r--r-- | feedgenerator/django/utils/encoding.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/feedgenerator/django/utils/encoding.py b/feedgenerator/django/utils/encoding.py index 02bb65c..c1375f2 100644 --- a/feedgenerator/django/utils/encoding.py +++ b/feedgenerator/django/utils/encoding.py @@ -195,7 +195,7 @@ def filepath_to_uri(path): # given fallback encoding if the encoding is unsupported by python or could # not be determined. See tickets #10335 and #5846 try: - DEFAULT_LOCALE_ENCODING = locale.getdefaultlocale()[1] or 'ascii' + DEFAULT_LOCALE_ENCODING = locale.getlocale()[1] or 'ascii' codecs.lookup(DEFAULT_LOCALE_ENCODING) except: DEFAULT_LOCALE_ENCODING = 'ascii' |