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

wxGUI: Thread.setDaemon deprecated with Python 3.10 #2145

Merged
merged 1 commit into from
Feb 1, 2022

Conversation

petrasovaa
Copy link
Contributor

Simple replace setDaemon(True) -> daemon = True, see python/cpython#25174

@petrasovaa petrasovaa added backport_needed GUI wxGUI related Python Related code is in Python labels Jan 31, 2022
@petrasovaa petrasovaa added this to the 8.0.1 milestone Jan 31, 2022
Copy link
Member

@wenzeslaus wenzeslaus left a comment

Choose a reason for hiding this comment

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

This is correct according to the v3.10 doc and the v3.6 doc already says Old getter/setter API for daemon; use it directly as a property instead. I don't see any other usages of set/isDaemon (using grep).

https://docs.python.org/3/library/threading.html#threading.Thread.daemon

@petrasovaa petrasovaa merged commit eba61a1 into OSGeo:main Feb 1, 2022
@petrasovaa petrasovaa deleted the gui-setdaemon branch February 1, 2022 04:18
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Oct 26, 2022
ninsbl pushed a commit to ninsbl/grass that referenced this pull request Feb 17, 2023
neteler pushed a commit to nilason/grass that referenced this pull request Nov 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
GUI wxGUI related Python Related code is in Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants