Skip to content

wxGUI: Thread.setDaemon deprecated with Python 3.10#2145

Merged
petrasovaa merged 1 commit intoOSGeo:mainfrom
petrasovaa:gui-setdaemon
Feb 1, 2022
Merged

wxGUI: Thread.setDaemon deprecated with Python 3.10#2145
petrasovaa merged 1 commit intoOSGeo:mainfrom
petrasovaa:gui-setdaemon

Conversation

@petrasovaa
Copy link
Copy Markdown
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
Copy Markdown
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