Fix for python-3.10 by bjornfor · Pull Request #484 · clustershell/clustershell · GitHub
Skip to content

Fix for python-3.10#484

Merged
thiell merged 1 commit into
clustershell:masterfrom
bjornfor:fix-for-python-3.10
Aug 8, 2022
Merged

Fix for python-3.10#484
thiell merged 1 commit into
clustershell:masterfrom
bjornfor:fix-for-python-3.10

Conversation

@bjornfor

@bjornfor bjornfor commented Aug 6, 2022

Copy link
Copy Markdown
Contributor

...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

bjornfor commented Aug 6, 2022

Copy link
Copy Markdown
Contributor Author

@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 clustershell:master Aug 8, 2022
@thiell

thiell commented Aug 8, 2022

Copy link
Copy Markdown
Collaborator

@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

bjornfor commented Aug 9, 2022

Copy link
Copy Markdown
Contributor Author

@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