Skip to content

Fix warning regarding ABC import from collections#104

Merged
rares-pop merged 2 commits intoni:masterfrom
tirkarthi:fix-abc
Sep 3, 2020
Merged

Fix warning regarding ABC import from collections#104
rares-pop merged 2 commits intoni:masterfrom
tirkarthi:fix-abc

Conversation

@tirkarthi
Copy link
Contributor

Fixes #73

import six
from collections import Sequence

if six.PY2:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are removing support for python 2.7, so please simplify those imports to only:

from collections.abc import Sequence

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, the setup.py still had 2.7 classifier at

"Programming Language :: Python :: 2.7",
due to which I added the check. I will use your suggestion

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Meh... I'll fix that! thank you! and thank you for the contribution!

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 this pull request may close these issues.

DeprecationWarning in Python 3.7

2 participants