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

feat: Make compatible with Python 2 and Python 3 runtimes #25

Merged

Conversation

matthewfeickert
Copy link
Collaborator

@matthewfeickert matthewfeickert commented May 11, 2020

Partially addresses #23 (might still be treated as Python 2 by default)

Use try and except blocks in the library imports to properly load the libraries that are divergent across Python 2 and Python 3. (Currently also showing the work of another PR)

  • pandamon
  • panda-shortname (contains no divergent imports)
  • panda-resub-taskid (contains no divergent imports)
  • panda-kill-taskid (contains no divergent imports)

@matthewfeickert matthewfeickert force-pushed the feat/make-python2-python3-compatible branch from d6746fc to ad7f688 Compare September 4, 2020 16:18
@matthewfeickert matthewfeickert marked this pull request as ready for review September 4, 2020 16:23
@matthewfeickert
Copy link
Collaborator Author

@dguest This is ready for review.

We don't have CI yet, but I've been dogfooding this on atlasconnect and things work fine with Python2 still.

@dguest
Copy link
Owner

dguest commented Sep 4, 2020

🤘

@dguest dguest merged commit b49b9da into dguest:python2 Sep 4, 2020
@matthewfeickert matthewfeickert deleted the feat/make-python2-python3-compatible branch September 4, 2020 17:23
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