Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecation warnings in Python 3.11 #819

Open
rcrdnalor opened this issue Nov 26, 2023 · 0 comments
Open

Deprecation warnings in Python 3.11 #819

rcrdnalor opened this issue Nov 26, 2023 · 0 comments
Assignees
Labels

Comments

@rcrdnalor
Copy link
Contributor

  • 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 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.

(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/

@rcrdnalor rcrdnalor added the component:bindings:python Python Bindings label Nov 26, 2023
@rcrdnalor rcrdnalor self-assigned this Nov 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant