Skip to content

Importing ABC directly from collections module will be ImportError in Python 3.9 #4853

Closed
@tirkarthi

Description

@tirkarthi

This was emitting deprecation warning from Python 3.4 and it will stop working in Python 3.9 . Reference : python/cpython#10596 . There is already awscli/compat.py so it would be good to import ABC from collections_abc that has Python 2 and 3 compatibility.

Thanks for the library!

awscli/customizations/history/db.py
19:from collections import MutableMapping
tests/__init__.py
1:from collections import MutableMapping
2:from collections import Mapping

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions