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

Fix for python-3.10 #484

Merged
merged 1 commit into from
Aug 8, 2022
Merged

Fix for python-3.10 #484

merged 1 commit into from
Aug 8, 2022

Conversation

bjornfor
Copy link
Contributor

@bjornfor bjornfor commented Aug 6, 2022

...by using current_thread() and notify_all() instead of the deprecated
currentThread() and notifyAll() functions. This fixes
DeprecationWarnings from the test suite that end up as errors.

AFAICT, the new names have been available since python-2.6[1], so this
change should not break support for any current python versions.

[1] https://docs.python.org/2.6/library/threading.html#threading.current_thread
https://docs.python.org/2.6/library/threading.html#threading.Condition.notify_all

...by using current_thread() and notify_all() instead of the deprecated
currentThread() and notifyAll() functions. This fixes
DeprecationWarnings from the test suite that end up as errors.

AFAICT, the new names have been available since python-2.6[1], so this
change should not break support for any current python versions.

[1] https://docs.python.org/2.6/library/threading.html#threading.current_thread
    https://docs.python.org/2.6/library/threading.html#threading.Condition.notify_all
@bjornfor
Copy link
Contributor Author

bjornfor commented Aug 6, 2022

The latest https://github.com/nixos/nixpkgs/ defaults to python-3.10 (which means clustershell is currently broken), so landing this PR and making a release would be appreciated :-)

@thiell thiell added this to the 1.9 milestone Aug 7, 2022
@thiell thiell self-requested a review August 7, 2022 05:13
@thiell thiell merged commit 314767d into cea-hpc:master Aug 8, 2022
@thiell
Copy link
Collaborator

thiell commented Aug 8, 2022

@bjornfor thanks much! it's good timing as we'll release version 1.9 soon. It will include these fixes for Python 3.10.

@bjornfor
Copy link
Contributor Author

bjornfor commented Aug 9, 2022

Thanks!

@bjornfor bjornfor deleted the fix-for-python-3.10 branch August 9, 2022 05:12
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