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

Fix collections ABCs DeprecationWarning in Python 3.7 #3123

Merged

Conversation

hugovk
Copy link
Member

@hugovk hugovk commented May 6, 2018

Fixes #3122.

Changes proposed in this pull request:

  • Prefer collections.abc (new in Python 3.3) over collections for abstract base classes
  • "In Python 3.8, the abstract base classes in collections.abc will no longer be exposed in the regular collections module. This will help create a clearer distinction between the concrete classes and the abstract base classes."
  • https://docs.python.org/3.7/whatsnew/3.7.html#deprecated

@hugovk hugovk changed the title Fix DeprecationWarning in Python 3.7 Fix collections ABCs DeprecationWarning in Python 3.7 May 6, 2018
@hugovk
Copy link
Member Author

hugovk commented May 6, 2018

This adds lines which are covered by tests. Coverage should increase.

Codecov coverage increased.

Coveralls coverage decreased, probably due to #2934.

@hugovk hugovk force-pushed the collections.abc-deprecationwarning branch from e1e0a42 to 3dbd4fb Compare May 6, 2018 12:31
@hugovk
Copy link
Member Author

hugovk commented May 6, 2018

Re-built, coverage now good after #2934 (comment).

@aclark4life aclark4life merged commit 9e5494e into python-pillow:master Jun 30, 2018
@aclark4life
Copy link
Member

Thanks

@hugovk hugovk deleted the collections.abc-deprecationwarning branch July 1, 2018 03:49
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.

None yet

2 participants