#7609 [py37] Import from collections.abc
Closed: fixed Opened 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

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

master:

  • 198a2c61129675b928bb7a970d5fc4c63a032456 Import ABCs from collections.abc

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

ipa-4-6:

  • e2347faad2e36ab8e81a04b8db18bd683dc3dfe2 Import ABCs from collections.abc
Metadata