Skip to content

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