#7609 [py37] Import from collections.abc
Closed: fixed 5 years ago Opened 5 years ago by cheimes.

All collection ABCs have been moved to collections.abc in Python 3.3. Since Python 3.7, imports from collections raise a deprecation warning. Pylint also complains: ipaclient/remote_plugins/schema.py:42: [E1101(no-member), ] Module 'collections' has no 'Sequence' member). Also see https://docs.python.org/3/library/collections.html#module-collections

Changed in version 3.3: Moved Collections Abstract Base Classes to the collections.abc module. For backwards compatibility, they continue to be visible in this module through Python 3.7. Subsequently, they will be removed entirely.

TODO: Fix all imports to import from collections.abc under Python 3. This needs to be fixed soonish, because F29 will use Python 3.7, https://fedoraproject.org/wiki/Changes/Python3.7


Metadata Update from @cheimes:
- Issue assigned to cheimes

5 years ago

Metadata Update from @cheimes:
- Custom field on_review adjusted to https://github.com/freeipa/freeipa/pull/2097

5 years ago

master:

  • 198a2c6 Import ABCs from collections.abc

Metadata Update from @cheimes:
- Issue close_status updated to: fixed
- Issue status updated to: Closed (was: Open)

5 years ago

ipa-4-6:

  • e2347fa Import ABCs from collections.abc

Login to comment on this ticket.

Metadata