You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.11 deprecates the API locale.getdefaultlocale() with a
pending removal in Python 3.13 (I).
Python 3.12 moves this pending removal to Python 3.15 (II).
MythTV's metadata grabber scripts (tmdb3.py and tmdb3tv.py)
use locale.getdefaultlocale() several times.
Future aspects:
Python's PEP 686 (III) plans to switch the default encoding from
ASCII to UTF-8 with Python 3.15 (III)
Any fixes for this issue need to have this major change in mind.
References:
(I) https://docs.python.org/3/whatsnew/3.11.html#deprecated :
The locale.getdefaultlocale() function is deprecated and will be
removed in Python 3.13. Use locale.setlocale(),
locale.getpreferredencoding(False) and locale.getlocale()
functions instead.
Platform: Any platform using Python 3.11+
MythTV version: master (v34-pre) and v33
Package version: N/A
Component: Python Bindings
Deprecation warnings in Python 3.11
Python 3.11 deprecates the API
locale.getdefaultlocale()
with apending removal in Python 3.13 (I).
Python 3.12 moves this pending removal to Python 3.15 (II).
MythTV's metadata grabber scripts (tmdb3.py and tmdb3tv.py)
use
locale.getdefaultlocale()
several times.Future aspects:
Python's PEP 686 (III) plans to switch the default encoding from
ASCII to UTF-8 with Python 3.15 (III)
Any fixes for this issue need to have this major change in mind.
References:
(I) https://docs.python.org/3/whatsnew/3.11.html#deprecated :
The locale.getdefaultlocale() function is deprecated and will be
removed in Python 3.13. Use locale.setlocale(),
locale.getpreferredencoding(False) and locale.getlocale()
functions instead.
(II) https://docs.python.org/3/whatsnew/3.12.html#deprecated :
The following APIs have been deprecated and will be removed
in Python 3.15 :
APIs: locale.getdefaultlocale() (gh-90817)
(III) https://peps.python.org/pep-0686/
The text was updated successfully, but these errors were encountered: