开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Correction for d-rats_repeater.py on later python3


 

The following message happens:
/usr/local/bin/d-rats_repeater.py:426: DeprecationWarning: setDaemon() is deprecated, set the daemon attribute instead
? self.repeat_thread.setDaemon(True)

Change
????? self.repeat_thread = threading.Thread(target=self._repeat)
to
s?? elf.repeat_thread = threading.Thread(target=self._repeat, daemon=True)

Full function below

??? def repeat(self):
??????? '''Repeat.'''
??????? self.repeat_thread = threading.Thread(target=self._repeat, daemon=True)
??????? # pylint: disable=deprecated-method
??????? # self.repeat_thread.setDaemon(True)
??????? self.repeat_thread.start()

Comment out the sel.repeat_thread.setDaemon
or remove it.

Aug
AG5AT


 

On 4/1/2023 8:28 PM, August Treubig wrote:
The following message happens:
/usr/local/bin/d-rats_repeater.py:426: DeprecationWarning: setDaemon() is deprecated, set the daemon
<snip>
filed.

73,
-John
wb8tyw