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

Migrate from Python2 to Python 3 #76

Closed
wants to merge 16 commits into from

Conversation

jacogasp
Copy link

@jacogasp jacogasp commented Oct 8, 2024

This PR is a draft, even though "complete", since it hasn't been tested due to the lack of documentation about its usage.

@jacogasp jacogasp changed the title Blind conversion from python2 to python3 Migrate from Python2 to Python 3 Oct 8, 2024
output = mysql_proc.stdout.read()
msg = f"Error dropping MySQL database {options.dbname}: {output}"
error_and_exit(msg)
print("Done.")


def grant_rw_access(options):
Copy link
Author

Choose a reason for hiding this comment

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

I don't know why git is not highlighting this line. In the main branch, the options argument is not defined and thus I cannot understand how this could work

I added the argument because how I guess that function was supposed to be used.

@brucellino
Copy link

Can I contribute a pre-commit hook to run flake8 / black on the scripts ? Can we add an action to validate the python3?

@jacogasp
Copy link
Author

jacogasp commented Oct 9, 2024

Superseded by PR #78

@jacogasp jacogasp closed this Oct 9, 2024
@jacogasp
Copy link
Author

jacogasp commented Oct 9, 2024

Hi @brucellino!

Thank you for reaching us, your contribution is very welcome!
I closed this PR because I created a new branch in this repository instead of using my own fork.

We can discuss the development in this issue #77.

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