Blame cura-lulzbot-3.6.22-python3.9.patch

7e86ab8
diff --git a/plugins/USBPrinting/USBPrinterOutputDevice.py b/plugins/USBPrinting/USBPrinterOutputDevice.py
7e86ab8
index ae442fbf4..c44280353 100644
7e86ab8
--- a/plugins/USBPrinting/USBPrinterOutputDevice.py
7e86ab8
+++ b/plugins/USBPrinting/USBPrinterOutputDevice.py
7e86ab8
@@ -314,7 +314,7 @@ class USBPrinterOutputDevice(PrinterOutputDevice):
7e86ab8
     ##  Try to connect the serial. This simply starts the thread, which runs _connect.
7e86ab8
     @pyqtSlot()
7e86ab8
     def _connect(self):
7e86ab8
-        if not self._update_firmware_thread._updating_firmware and not self._connect_thread.isAlive() and self._connection_state in [ConnectionState.closed, ConnectionState.error]:
7e86ab8
+        if not self._update_firmware_thread._updating_firmware and not self._connect_thread.is_alive() and self._connection_state in [ConnectionState.closed, ConnectionState.error]:
7e86ab8
             self._connect_thread.start()
7e86ab8
 
7e86ab8
     ##  Upload new firmware to machine
7e86ab8
@@ -636,11 +636,11 @@ class ConnectThread:
7e86ab8
     def start(self):
7e86ab8
         return  self._thread.start()
7e86ab8
 
7e86ab8
-    def isAlive(self):
7e86ab8
-        return  self._thread.isAlive()
7e86ab8
+    def is_alive(self):
7e86ab8
+        return  self._thread.is_alive()
7e86ab8
 
7e86ab8
     def wrapup(self):
7e86ab8
-        if self._thread.isAlive():
7e86ab8
+        if self._thread.is_alive():
7e86ab8
             try:
7e86ab8
                 # TODO: to avoid waiting indefinitely, notify the thread that it needs
7e86ab8
                 # to return immediatly.