Skip to content

Commit

Permalink
wxGUI: Thread.setDaemon deprecated in Python 3.10 (OSGeo#2145)
Browse files Browse the repository at this point in the history
  • Loading branch information
petrasovaa authored and ninsbl committed Feb 17, 2023
1 parent db37607 commit 262d0e0
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
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

0 comments on commit 262d0e0

Please sign in to comment.