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

Update urlopen() and getoutput() to support Python3 as well #24

Conversation

bernhardkaindl
Copy link
Collaborator

@bernhardkaindl bernhardkaindl commented Nov 8, 2023

No description provided.

GeraldEV
GeraldEV previously approved these changes Nov 8, 2023
@bernhardkaindl bernhardkaindl force-pushed the private/bernhardk/py2-py3-six.moves-urllib branch 2 times, most recently from c54b4d6 to 12f8bef Compare November 8, 2023 16:27
@bernhardkaindl bernhardkaindl changed the title Modernize urllib: Apply sixxer (from six) to support Python3 as well Update urlopen() and getoutput() to support Python3 as well Nov 8, 2023
There are many updates ahead until it starts to work on Python3, and for
now, let's not cut off Python2 because when we do so, we cannot merge
that code to master as it not run on Python2 nor on Python3. To avoid
this, this simple compatibility handling allows us to merge to master.

Use line-length=108 for formatting by black and isort for fewer reformats

Signed-off-by: Bernhard Kaindl <[email protected]>
@bernhardkaindl bernhardkaindl force-pushed the private/bernhardk/py2-py3-six.moves-urllib branch from 12f8bef to 8014792 Compare November 8, 2023 17:59
@bernhardkaindl bernhardkaindl merged commit 0c2d94c into xenserver:master Nov 14, 2023
2 checks passed
@bernhardkaindl bernhardkaindl deleted the private/bernhardk/py2-py3-six.moves-urllib branch January 8, 2024 18:53
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.

3 participants