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 for fixing python3 dependencies #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

murwall
Copy link

@murwall murwall commented Jun 20, 2023

No description provided.

@murwall
Copy link
Author

murwall commented Jun 20, 2023

Only contains fixes needed for check_keepalived.py

Copy link

@Skipper126 Skipper126 Jun 20, 2023

Choose a reason for hiding this comment

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

Not sure if its needed, but if this file is called from other scripts running Python 2, then they will no longer work. Adding "from _future_ import print_function" at the top of this file might fix that, so that this file will work for both versions of interpreter.

Copy link
Author

Choose a reason for hiding this comment

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

I doubt there is any < python3 running this, or even if this is used by anyone, but then again I didn't know this existed until today so it doesn't hurt. Pushed new commit. Thanks

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