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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gui/wxpython/core/gcmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ def __init__(self, cmd, env=None, stdin=None, stdout=sys.stdout, stderr=sys.stde
self._want_abort = False
self.aborted = False

self.setDaemon(True)
self.daemon = True

# set message formatting
self.message_format = os.getenv("GRASS_MESSAGE_FORMAT")
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/core/gconsole.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def __init__(self, receiver, requestQ=None, resultQ=None, **kwds):
else:
self.resultQ = resultQ

self.setDaemon(True)
self.daemon = True

self.requestCmd = None

Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/core/gthread.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def __init__(self, requestQ=None, resultQ=None, **kwds):
else:
self.resultQ = resultQ

self.setDaemon(True)
self.daemon = True

self.Bind(EVT_CMD_DONE, self.OnDone)
self.Bind(EVT_THD_TERMINATE, self.OnTerminate)
Expand Down
4 changes: 2 additions & 2 deletions gui/wxpython/gui_core/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ def __init__(self, parent, event, eventId, task):
self.event = event
self.eventId = eventId
self.task = task
self.setDaemon(True)
self.daemon = True

# list of functions which updates the dialog
self.data = {}
Expand Down Expand Up @@ -434,7 +434,7 @@ def __init__(self, parent, requestQ, resultQ, **kwds):
Thread.__init__(self, **kwds)

self.parent = parent # cmdPanel
self.setDaemon(True)
self.daemon = True

self.requestQ = requestQ
self.resultQ = resultQ
Expand Down
2 changes: 1 addition & 1 deletion gui/wxpython/nviz/mapwindow.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(self, log, progressbar, window):

self._display = None

self.setDaemon(True)
self.daemon = True

def run(self):
self._display = wxnviz.Nviz(self.log, self.progressbar)
Expand Down