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

Remove some more vistir usage #5067

Merged
merged 3 commits into from
Apr 21, 2022
Merged

Conversation

oz123
Copy link
Contributor

@oz123 oz123 commented Apr 21, 2022

  • Removed usage of vistir.compat.JSONDecodeError
    json.JSONDecodeError is Python 3.6+
  • Removed vistir.path.rmtree in favour of shutil.rmtree
    Should work, but we might have to revert this.

oz123 added 3 commits April 21, 2022 11:13
This is no longer needed since Python version 3.6. Earlier versions
didn't have json.JSONDecodeError and raised ValueError instead.
@oz123 oz123 requested a review from matteius April 21, 2022 10:08
@oz123 oz123 marked this pull request as draft April 21, 2022 11:08
@oz123 oz123 marked this pull request as ready for review April 21, 2022 11:08
@oz123
Copy link
Contributor Author

oz123 commented Apr 21, 2022

@matteius I've seen this error for MacOS Python3.10 happen already a few times (in the main branch too). No idea how to fix it, but it seems unrelated to the changes I proposed in the PR.

@matteius
Copy link
Member

@oz123 I don't see where it has happened on the main branch ... link to a failed action?

@@ -2791,8 +2792,9 @@ def do_check(


def do_graph(project, bare=False, json=False, json_tree=False, reverse=False):
import json as jsonlib
Copy link
Member

Choose a reason for hiding this comment

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

Can we just import json at the top level now? I don't really see why to namespace it to jsonlib either.

@matteius
Copy link
Member

@matteius I've seen this error for MacOS Python3.10 happen already a few times (in the main branch too). No idea how to fix it, but it seems unrelated to the changes I proposed in the PR.

I re-ran just the one failed job and it succeeded. Looks like a 1-off GitHub data transfer failure

@matteius matteius merged commit f0199ee into main Apr 21, 2022
@matteius matteius deleted the remove-vistir.compat.JSONDecodeError branch April 21, 2022 16:59
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.

2 participants