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

Import ABC from collections.abc instead of collections for Python 3.9 compatibility. #351

Merged
merged 1 commit into from
Feb 11, 2020
Merged

Import ABC from collections.abc instead of collections for Python 3.9 compatibility. #351

merged 1 commit into from
Feb 11, 2020

Conversation

tirkarthi
Copy link
Contributor

Fixes #350

Copy link
Contributor

@Aniket-Pradhan Aniket-Pradhan left a comment

Choose a reason for hiding this comment

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

Everything looks great. Just a small nit.

Thanks a lot for your help here. ^.^

odml/base.py Outdated
import posixpath

from . import terminology
from .tools.doc_inherit import allow_inherit_docstring

try:
from collections.abc import Iterable
except:
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please replace except with except ImportError

This would maintain uniformity and help us make sure that we are not skipping any other unwanted exception alongside as well.

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 for the catch. I missed it. Should be fixed now.

@coveralls
Copy link

coveralls commented Feb 7, 2020

Coverage Status

Coverage decreased (-0.08%) to 75.476% when pulling d11c142 on tirkarthi:fix-abc-warnings into 529baba on G-Node:master.

@mpsonntag mpsonntag merged commit a8941de into G-Node:master Feb 11, 2020
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.

Test failure with Python 3.9
4 participants