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

Python 3.10 removing the aliases to the ABCs from the collections module #374

Closed
garybuhrmaster opened this issue Jul 22, 2021 · 0 comments

Comments

@garybuhrmaster
Copy link
Contributor

One of the changes in python 3.10 is the removal of the long deprecated aliases to the Abstract Base Classes from the collections module: https://docs.python.org/3.10/whatsnew/3.10.html#removed

Code of the form:

  from collections import Sequence

will need to be changed to something like:

  try:
    from collections.abc import Sequence
  except ImportError:
    from collections import Sequence

There are a couple of such changes that will need to occur in the MythTV python codes.

Python 3.10 is expected to be released in early October 2021, and the betas are already available in some (b)leading edge distros.

A pull request will be created shortly

garybuhrmaster added a commit to garybuhrmaster/mythtv that referenced this issue Jul 22, 2021
Python 3.10 will finally remove the long deprecated aliases to the
Abstract Base Classes from the collections module.

    https://docs.python.org/3.10/whatsnew/3.10.html#removed

Fixes MythTV#374
garybuhrmaster added a commit to garybuhrmaster/mythtv that referenced this issue Jul 31, 2021
Python 3.10 will finally remove the long deprecated aliases to the
Abstract Base Classes from the collections module.

    https://docs.python.org/3.10/whatsnew/3.10.html#removed

Fixes MythTV#374
rcrdnalor pushed a commit that referenced this issue Oct 28, 2021
Python 3.10 will finally remove the long deprecated aliases to the
Abstract Base Classes from the collections module.

    https://docs.python.org/3.10/whatsnew/3.10.html#removed

Fixes #374

(cherry picked from commit 4b6a3a7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant