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 #983

Merged
merged 3 commits into from
Jul 16, 2020
Merged

Import ABC from collections.abc #983

merged 3 commits into from
Jul 16, 2020

Conversation

tirkarthi
Copy link
Contributor

Description

Fixes #982 . Import collections from collections.abc . Compatibility code is not added since Python 2 support has ended.

@fabiencastan
Copy link
Member

Thanks for the PR!

We still have to support Python-2 to be able to submit job on Tractor renderfarm which, unfortunately, still doesn't have a python-3 api.

@tirkarthi
Copy link
Contributor Author

I thought the repo was Python 3 only due to commit : 80d028e . I have added compatibility code to ensure the PR works with Python 2 and 3 .

@fabiencastan
Copy link
Member

Perfect, thanks!
Yeah, I was not in favor of removing python-2 from the CI. But, at some point, we will be able to finally drop python-2!

@tirkarthi
Copy link
Contributor Author

codacy reports that imports are not used but the file is for compatibility code. asserts are skipped but it was previous code and doesn't seem to be relevant to this PR.

@fabiencastan fabiencastan added this to the Meshroom 2020.1.0 milestone Jul 16, 2020
@fabiencastan fabiencastan merged commit 165ba41 into alicevision:develop Jul 16, 2020
@tirkarthi
Copy link
Contributor Author

Thanks @fabiencastan :)

@fabiencastan
Copy link
Member

Thank you for the fix!

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.

[bug] Importing ABC directly from collections will be removed in Python 3.10
2 participants