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: make collections import compatible across Python versions #419

Merged
merged 3 commits into from Jan 17, 2020
Merged

fix: make collections import compatible across Python versions #419

merged 3 commits into from Jan 17, 2020

Conversation

jay0lee
Copy link
Contributor

@jay0lee jay0lee commented Jan 8, 2020

Fixes #418.

Use collections.abc.Mapping instead of deprecated collections.Mapping that will be removed with Python 3.9.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Jan 8, 2020
@jay0lee jay0lee changed the title Use collections.abc, fixes #418 fix: Use collections.abc, fixes #418 Jan 8, 2020
@busunkim96 busunkim96 added the kokoro:run Add this label to force Kokoro to re-run the tests. label Jan 8, 2020
@yoshi-kokoro yoshi-kokoro removed the kokoro:run Add this label to force Kokoro to re-run the tests. label Jan 8, 2020
Copy link
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

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

@jay0lee Thanks for the fix!

Unfortunately, this library technically still supports Python 2.7, thus the import needs to be made in a compatible way for a little longer.

(the README does say January 1st 2020, but IIRC the support is extended until April 2020 when the last Python 2.7 bugfix release is made)

@plamut plamut changed the title fix: Use collections.abc, fixes #418 fix: make collections import compatible across Python versions Jan 17, 2020
Copy link
Contributor

@plamut plamut left a comment

Choose a reason for hiding this comment

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

Looks good now, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failure with Python 3.9 due to use of deprecated collections.Mapping
5 participants