Changeset 98655 in vbox
- Timestamp:
- Feb 20, 2023 3:05:40 PM (2 years ago)
- Location:
- trunk/src/VBox/ValidationKit
- Files:
-
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testboxscript/testboxcommand.py
r98651 r98655 192 192 try: 193 193 utils.sudoProcessOutputChecked(asCmd2); 194 except Exception as oXcpt :195 testboxcommons.log('Error executing reboot command "%s" as well as "%s": %s' % (asCmd, asCmd2, oXcpt ));194 except Exception as oXcpt2: 195 testboxcommons.log('Error executing reboot command "%s" as well as "%s": %s' % (asCmd, asCmd2, oXcpt2)); 196 196 return False; 197 197 testboxcommons.log('Error executing reboot command "%s": %s' % (asCmd, oXcpt)); … … 251 251 self.doReboot(); 252 252 sys.exit(TBS_EXITCODE_NEED_UPGRADE); 253 return False; # shuts up pylint (it will probably complain later when it learns DECL_NO_RETURN).253 return False; # shuts up older pylint. 2.16.2+: pylint: disable=unreachable 254 254 255 255 def _cmdUpgrade(self, oResponse, oConnection): -
trunk/src/VBox/ValidationKit/testboxscript/testboxcommons.py
r98103 r98655 77 77 Debug logging, will later be disabled by default. 78 78 """ 79 if True is True: # pylint: disable=comparison-with-itself 79 if True is True: # pylint: disable=comparison-with-itself,comparison-of-constants 80 80 if sTsPrf is None: sTsPrf = utils.getTimePrefix(); 81 81 print('[%s] %s' % (sTsPrf, sMessage,)); -
trunk/src/VBox/ValidationKit/testboxscript/testboxscript.py
r98651 r98655 113 113 break; 114 114 if sPidFile: 115 with open(sPidFile, 'w') as oPidFile: 115 with open(sPidFile, 'w') as oPidFile: # pylint: disable=unspecified-encoding 116 116 oPidFile.write(str(os.getpid())); 117 117 -
trunk/src/VBox/ValidationKit/testboxscript/testboxupgrade.py
r98651 r98655 214 214 try: 215 215 shutil.copy(sDst, sDstRm); 216 except Exception as oXcpt :217 testboxcommons.log('Error: failed to copy (old) "%s" to "%s": %s' % (sDst, sDstRm, oXcpt ));216 except Exception as oXcpt2: 217 testboxcommons.log('Error: failed to copy (old) "%s" to "%s": %s' % (sDst, sDstRm, oXcpt2)); 218 218 break; 219 219 try: 220 220 os.unlink(sDst); 221 except Exception as oXcpt :222 testboxcommons.log('Error: failed to unlink (old) "%s": %s' % (sDst, oXcpt ));221 except Exception as oXcpt2: 222 testboxcommons.log('Error: failed to unlink (old) "%s": %s' % (sDst, oXcpt2)); 223 223 break; 224 224 … … 231 231 try: 232 232 shutil.copy(sSrc, sDst); 233 except :234 testboxcommons.log('Error: failed to copy (new) "%s" to "%s": %s' % (sSrc, sDst, oXcpt ));233 except Exception as oXcpt2: 234 testboxcommons.log('Error: failed to copy (new) "%s" to "%s": %s' % (sSrc, sDst, oXcpt2)); 235 235 fRc = False; 236 236 break; -
trunk/src/VBox/ValidationKit/testdriver/base.py
r98651 r98655 437 437 def lockTask(self): 438 438 """ Wrapper around oCv.acquire(). """ 439 if True is True: # change to False for debugging deadlocks. # pylint: disable=comparison-with-itself 439 # Change this to False for debugging deadlocks. 440 if True is True: # pylint: disable=comparison-with-itself,comparison-of-constants 440 441 self.oCv.acquire(); 441 442 else: … … 654 655 try: 655 656 if hasattr(self.hWin, '__int__'): # Needed for newer pywin32 versions. 656 (uPid, uStatus) = os.waitpid(self.hWin.__int__(), 0); 657 (uPid, uStatus) = os.waitpid(self.hWin.__int__(), 0); # pylint: disable=unnecessary-dunder-call 657 658 else: 658 659 (uPid, uStatus) = os.waitpid(self.hWin, 0); … … 1079 1080 except: 1080 1081 return None; 1081 else: 1082 oTask.setTaskOwner(None); 1082 oTask.setTaskOwner(None); 1083 1083 #reporter.log2('tasks left: %d - %s' % (len(self.aoTasks), self.aoTasks)); 1084 1084 return oTask; -
trunk/src/VBox/ValidationKit/testdriver/txsclient.py
r98588 r98655 484 484 self.fnTask = fnTask; 485 485 self.aTaskArgs = aArgs; 486 self.oThread = threading.Thread(target=self.taskThread, args=(), name= ('TXS-%s' % (sStatus)));486 self.oThread = threading.Thread(target=self.taskThread, args=(), name='TXS-%s' % (sStatus)); 487 487 self.oThread.setDaemon(True); # pylint: disable=deprecated-method 488 488 self.msStart = base.timestampMilli(); … … 527 527 if sys.version_info < (3, 9, 0): 528 528 # Removed since Python 3.9. 529 return oThread.isAlive(); # pylint: disable=no-member 529 return oThread.isAlive(); # pylint: disable=no-member,deprecated-method 530 530 return oThread.is_alive(); 531 531 … … 1189 1189 abBuf = array.array('B'); 1190 1190 if utils.isString(sRaw): 1191 for i, _ in enumerate(sRaw):1192 abBuf.append(ord( sRaw[i]));1191 for ch in sRaw: 1192 abBuf.append(ord(ch)); 1193 1193 else: 1194 1194 abBuf.extend(sRaw); -
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r98651 r98655 556 556 Called when working in passive mode. 557 557 """ 558 self.oThread = threading.Thread(target = self.threadForPassiveMode, \ 559 args=(), name=('PAS-%s' % (self.sName,))); 558 self.oThread = threading.Thread(target = self.threadForPassiveMode, args=(), name='PAS-%s' % (self.sName,) ); 560 559 self.oThread.setDaemon(True); # pylint: disable=deprecated-method 561 560 self.oThread.start(); … … 617 616 oRet = oVBoxMgr.createCallback(sICallbackNm, oSubClass, dArgsCopy); 618 617 except: 619 reporter.errorXcpt('%s:: registerCallback(%s) failed%s' % (sSrcParentNm, oRet, sLogSuffix));618 reporter.errorXcpt('%s::createCallback(%s) failed%s' % (sSrcParentNm, sICallbackNm, sLogSuffix,)); 620 619 else: 621 620 try: … … 624 623 except Exception as oXcpt: 625 624 if fMustSucceed or ComError.notEqual(oXcpt, ComError.E_UNEXPECTED): 626 reporter.errorXcpt('%s::registerCallback(%s)%s' % (sSrcParentNm, oRet, sLogSuffix ));625 reporter.errorXcpt('%s::registerCallback(%s)%s' % (sSrcParentNm, oRet, sLogSuffix,)); 627 626 else: 628 627 # … … 944 943 945 944 # Try dev build first since that's where I'll be using it first... 946 if True is True: # pylint: disable=comparison-with-itself 945 if True is True: # pylint: disable=comparison-with-itself,comparison-of-constants 947 946 try: 948 947 self.oBuild = Build(self, None); -
trunk/src/VBox/ValidationKit/testdriver/vboxinstaller.py
r98651 r98655 361 361 # Are any of the debugger processes hooked up to a VBox process? 362 362 if sHostOs == 'windows': 363 # On demand debugging windows: windbg -p <decimal-pid> -e <decimal-event> -g 364 for oDebugger in aoDebuggers: 365 for oProcess in aoTodo: 363 def isDebuggerDebuggingVBox(oDebugger, aoVBoxProcesses): 364 for oProcess in aoVBoxProcesses: 366 365 # The whole command line is asArgs[0] here. Fix if that changes. 367 366 if oDebugger.asArgs and oDebugger.asArgs[0].find('-p %s ' % (oProcess.iPid,)) >= 0: 368 aoTodo.append(oDebugger);369 break;367 return True; 368 return False; 370 369 else: 371 for oDebugger in aoDebuggers:372 for oProcess in ao Todo:370 def isDebuggerDebuggingVBox(oDebugger, aoVBoxProcesses): 371 for oProcess in aoVBoxProcesses: 373 372 # Simplistic approach: Just check for argument equaling our pid. 374 373 if oDebugger.asArgs and ('%s' % oProcess.iPid) in oDebugger.asArgs: 375 aoTodo.append(oDebugger); 376 break; 374 return True; 375 return False; 376 for oDebugger in aoDebuggers: 377 if isDebuggerDebuggingVBox(oDebugger, aoTodo): 378 aoTodo.append(oDebugger); 377 379 378 380 # Kill. … … 586 588 fRc = fRc2; 587 589 588 reporter.testDone(fSkipped = (fRc is None));590 reporter.testDone(fSkipped = fRc is None); 589 591 return fRc; 590 592 -
trunk/src/VBox/ValidationKit/testdriver/vboxtestvms.py
r98616 r98655 1890 1890 cTests = cTests + (rc2 is not None); 1891 1891 if sParavirtMode is not None: 1892 reporter.testDone(fSkipped = (rc2 is None));1892 reporter.testDone(fSkipped = rc2 is None); 1893 1893 1894 1894 reporter.testDone(fSkipped = cTests == cStartTests); -
trunk/src/VBox/ValidationKit/testdriver/vboxwrappers.py
r98103 r98655 526 526 they don't throw errors. 527 527 """ 528 if True is True: # pylint: disable=comparison-with-itself 528 if True is True: # pylint: disable=comparison-with-itself,comparison-of-constants 529 529 try: 530 530 iPct = self.o.operationPercent; … … 1837 1837 reporter.errorXcpt('addStorageController("%s",%s) failed on "%s"' % (sController, eBus, self.sName) ); 1838 1838 return False; 1839 else: 1840 try: 1841 oCtl.controllerType = eType; 1842 reporter.log('added storage controller "%s" (bus %s, type %s) to %s' 1843 % (sController, eBus, eType, self.sName)); 1844 except: 1845 reporter.errorXcpt('controllerType = %s on ("%s" / %s) failed on "%s"' 1846 % (eType, sController, eBus, self.sName) ); 1847 return False; 1839 try: 1840 oCtl.controllerType = eType; 1841 reporter.log('added storage controller "%s" (bus %s, type %s) to %s' 1842 % (sController, eBus, eType, self.sName)); 1843 except: 1844 reporter.errorXcpt('controllerType = %s on ("%s" / %s) failed on "%s"' 1845 % (eType, sController, eBus, self.sName) ); 1846 return False; 1848 1847 finally: 1849 1848 self.oTstDrv.processPendingEvents(); … … 2474 2473 sValue = self.o.machine.getExtraData(sKey) 2475 2474 except: 2476 reporter.errorXcpt('IMachine:: setExtraData("%s","%s") failed' % (sKey, sValue))2475 reporter.errorXcpt('IMachine::getExtraData("%s") failed' % (sKey,)) 2477 2476 return None 2478 2477 return sValue … … 3289 3288 self._deregisterEventHandler(); 3290 3289 raise; 3291 else: 3292 if sIpAddr is not None: 3293 self._setIp(sIpAddr); 3290 if sIpAddr is not None: 3291 self._setIp(sIpAddr); 3294 3292 3295 3293 # -
trunk/src/VBox/ValidationKit/testdriver/winbase.py
r98103 r98655 142 142 reporter.logXcpt('uPid=%s oXcpt=%s' % (uPid, oXcpt)); 143 143 except Exception as oXcpt: 144 reporter.logXcpt('uPid=%s ' % (uPid,));144 reporter.logXcpt('uPid=%s oXcpt=%s' % (uPid, oXcpt)); 145 145 return False; 146 146 else: -
trunk/src/VBox/ValidationKit/testmanager/batch/del_build.py
r98103 r98655 84 84 sys.exit(1); 85 85 raise; 86 else: 87 if not oConfig.fQuiet: 88 print("del_build.py: Marked %u builds associated with '%s' as deleted." % (cBuilds, sBuildBin,)); 86 if not oConfig.fQuiet: 87 print("del_build.py: Marked %u builds associated with '%s' as deleted." % (cBuilds, sBuildBin,)); 89 88 90 89 oDb.close() -
trunk/src/VBox/ValidationKit/testmanager/batch/virtual_test_sheriff.py
r98645 r98655 1292 1292 1293 1293 # Generalistic fallbacks: 1294 for sKey in self.kdGATestFallbacks:1294 for sKey in utils.iteritems(self.kdGATestFallbacks): 1295 1295 oTmpFailedResult = oFailedResult; 1296 1296 while oTmpFailedResult: … … 1434 1434 for sNeedle, fnHandler in self.katInfoTextHandlers: 1435 1435 if sInfoText.find(sNeedle) > 0: 1436 (fStop, tReason) = fnHandler(self, oCaseFile, sInfoText, dLogs); 1436 (fStop, tReason) = fnHandler(self, oCaseFile, sInfoText, dLogs);# ? pylint: disable=too-many-function-args 1437 1437 if tReason is not None: 1438 1438 oCaseFile.noteReasonForId(tReason, oFailedResult.idTestResult); -
trunk/src/VBox/ValidationKit/testmanager/core/base.py
r98103 r98655 247 247 elif isinstance(oValue, list) and oValue and isinstance(oValue[0], ModelDataBase): 248 248 oValue = copy.copy(oValue); 249 for i, _in enumerate(oValue):250 assert isinstance(o Value[i], ModelDataBase);251 oValue[i] = copy.copy(o Value[i]);249 for i, oSubValue in enumerate(oValue): 250 assert isinstance(oSubValue, ModelDataBase); 251 oValue[i] = copy.copy(oSubValue); 252 252 oValue[i].convertFromParamNull(); 253 253 … … 283 283 elif isinstance(oValue, list) and oValue and isinstance(oValue[0], ModelDataBase): 284 284 oValue = copy.copy(oValue); 285 for i, _in enumerate(oValue):286 assert isinstance(o Value[i], ModelDataBase);287 oValue[i] = copy.copy(o Value[i]);285 for i, oSubValue in enumerate(oValue): 286 assert isinstance(oSubValue, ModelDataBase); 287 oValue[i] = copy.copy(oSubValue); 288 288 oValue[i].convertToParamNull(); 289 289 -
trunk/src/VBox/ValidationKit/testmanager/core/dbobjcache.py
r98103 r98655 120 120 try: oRet.initFromDbWithId(self._oDb, idTestBox, self.tsNow, self.sPeriodBack); 121 121 except: self._handleDbException(); raise; 122 else:self._adCache[self.ksObjType_TestBox_idGenTestBox][oRet.idGenTestBox] = oRet;122 self._adCache[self.ksObjType_TestBox_idGenTestBox][oRet.idGenTestBox] = oRet; 123 123 self._adCache[self.ksObjType_TestBox_idTestBox][idTestBox] = oRet; 124 124 return oRet; … … 133 133 try: oRet.initFromDbWithId(self._oDb, idTestCase, self.tsNow, self.sPeriodBack); 134 134 except: self._handleDbException(); raise; 135 else:self._adCache[self.ksObjType_TestCase_idGenTestCase][oRet.idGenTestCase] = oRet;135 self._adCache[self.ksObjType_TestCase_idGenTestCase][oRet.idGenTestCase] = oRet; 136 136 self._adCache[self.ksObjType_TestCase_idTestCase][idTestCase] = oRet; 137 137 return oRet; … … 146 146 try: oRet.initFromDbWithId(self._oDb, idTestCaseArgs, self.tsNow, self.sPeriodBack); 147 147 except: self._handleDbException(); raise; 148 else:self._adCache[self.ksObjType_TestCaseArgs_idGenTestCaseArgs][oRet.idGenTestCaseArgs] = oRet;148 self._adCache[self.ksObjType_TestCaseArgs_idGenTestCaseArgs][oRet.idGenTestCaseArgs] = oRet; 149 149 self._adCache[self.ksObjType_TestCaseArgs_idTestCaseArgs][idTestCaseArgs] = oRet; 150 150 return oRet; -
trunk/src/VBox/ValidationKit/testmanager/core/schedgroup.py
r98103 r98655 408 408 409 409 if not asErrors: 410 for i, _ in enumerate(aoNewMembers): 411 idTestGroup = aoNewMembers[i]; 410 for i, idTestGroup in enumerate(aoNewMembers): 412 411 for j in range(i + 1, len(aoNewMembers)): 413 412 if aoNewMembers[j].idTestGroup == idTestGroup: … … 428 427 429 428 if not asErrors: 430 for i, _ in enumerate(aoNewMembers): 431 idTestBox = aoNewMembers[i]; 429 for i, idTestBox in enumerate(aoNewMembers): 432 430 for j in range(i + 1, len(aoNewMembers)): 433 431 if aoNewMembers[j].idTestBox == idTestBox: -
trunk/src/VBox/ValidationKit/testmanager/core/schedulerbase.py
r98103 r98655 452 452 def next(self): 453 453 """ For python 2.x. """ 454 return self.__next__(); 454 return self.__next__(); # pylint: disable=unnecessary-dunder-call 455 455 456 456 class BuildCacheEntry(object): … … 789 789 790 790 sArgs = ' --gang-member-no %s --gang-members %s' % (oTestSet.iGangMemberNo, len(aoGangMembers)); 791 for i, _in enumerate(aoGangMembers):792 sArgs = ' --gang-ipv4-%s %s' % (i, aoGangMembers[i].ip); ## @todo IPv6791 for i, sIp in enumerate(aoGangMembers): 792 sArgs = ' --gang-ipv4-%s %s' % (i, sIp); ## @todo IPv6 793 793 794 794 return sArgs; -
trunk/src/VBox/ValidationKit/testmanager/core/testgroup.py
r98103 r98655 367 367 368 368 if not asErrors: 369 for i, _ in enumerate(aoNewMembers): 370 idTestCase = aoNewMembers[i]; 369 for i, idTestCase in enumerate(aoNewMembers): 371 370 for j in range(i + 1, len(aoNewMembers)): 372 371 if aoNewMembers[j].idTestCase == idTestCase: -
trunk/src/VBox/ValidationKit/testmanager/core/testresults.py
r98103 r98655 2326 2326 """Returns a string rep of the stack.""" 2327 2327 sRet = ''; 2328 for i, _in enumerate(aoStack):2329 sRet += 'aoStack[%d]=%s\n' % (i, aoStack[i]);2328 for i, oFrame in enumerate(aoStack): 2329 sRet += 'aoStack[%d]=%s\n' % (i, oFrame); 2330 2330 return sRet; 2331 2331 … … 2344 2344 aoStack.append(TestResultData().initFromDbRow(aoRow)); 2345 2345 2346 for i, _in enumerate(aoStack):2347 assert aoStack[i].iNestingDepth == len(aoStack) - i - 1, self._stringifyStack(aoStack);2346 for i, oFrame in enumerate(aoStack): 2347 assert oFrame.iNestingDepth == len(aoStack) - i - 1, self._stringifyStack(aoStack); 2348 2348 2349 2349 return aoStack; -
trunk/src/VBox/ValidationKit/testmanager/core/webservergluebase.py
r98103 r98655 603 603 fnWrite('<h2>%s</h2>\n' 604 604 '<table border="1"><tr><th>index</th><th>value</th></tr>\n' % (sName,)); 605 for i, _in enumerate(aoStuff):606 fnWrite(' <tr><td>' + str(i) + '</td><td>' + webutils.escapeElem(str( aoStuff[i])) + '</td></tr>\n');605 for i, oStuff in enumerate(aoStuff): 606 fnWrite(' <tr><td>' + str(i) + '</td><td>' + webutils.escapeElem(str(oStuff)) + '</td></tr>\n'); 607 607 fnWrite('</table>\n'); 608 608 else: -
trunk/src/VBox/ValidationKit/testmanager/webui/wuicontentbase.py
r98103 r98655 890 890 assert len(aoValues) == len(self._asColumnHeaders), '%s vs %s' % (len(aoValues), len(self._asColumnHeaders)); 891 891 892 for i, _in enumerate(aoValues):892 for i, oValue in enumerate(aoValues): 893 893 if i < len(self._asColumnAttribs) and self._asColumnAttribs[i]: 894 894 sRow += u' <td ' + self._asColumnAttribs[i] + '>'; … … 896 896 sRow += u' <td>'; 897 897 898 if isinstance( aoValues[i], WuiHtmlBase):899 sRow += aoValues[i].toHtml();900 elif isinstance( aoValues[i], list):901 if aoValues[i]:902 for oElement in aoValues[i]:898 if isinstance(oValue, WuiHtmlBase): 899 sRow += oValue.toHtml(); 900 elif isinstance(oValue, list): 901 if oValue: 902 for oElement in oValue: 903 903 if isinstance(oElement, WuiHtmlBase): 904 904 sRow += oElement.toHtml(); … … 908 908 sRow += webutils.escapeElem(unicode(oElement)); 909 909 sRow += ' '; 910 elif db.isDbTimestamp( aoValues[i]):911 sRow += webutils.escapeElem(self.formatTsShort( aoValues[i]));912 elif db.isDbInterval( aoValues[i]):913 sRow += webutils.escapeElem(self.formatIntervalShort( aoValues[i]));914 elif aoValues[i]is not None:915 sRow += webutils.escapeElem(unicode( aoValues[i]));910 elif db.isDbTimestamp(oValue): 911 sRow += webutils.escapeElem(self.formatTsShort(oValue)); 912 elif db.isDbInterval(oValue): 913 sRow += webutils.escapeElem(self.formatIntervalShort(oValue)); 914 elif oValue is not None: 915 sRow += webutils.escapeElem(unicode(oValue)); 916 916 917 917 sRow += u'</td>\n'; -
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpform.py
r98103 r98655 696 696 oDefMember = TestGroupMemberData(); 697 697 aoTestGroupMembers = list(aoTestGroupMembers); # Copy it so we can pop. 698 for iTestCase, _ in enumerate(aoAllTestCases): 699 oTestCase = aoAllTestCases[iTestCase]; 698 for iTestCase, oTestCase in enumerate(aoAllTestCases): 700 699 701 700 # Is it a member? … … 807 806 oDefMember = SchedGroupMemberData(); 808 807 aoSchedGroupMembers = list(aoSchedGroupMembers); # Copy it so we can pop. 809 for iTestGroup, _ in enumerate(aoAllRelevantTestGroups): 810 oTestGroup = aoAllRelevantTestGroups[iTestGroup]; 808 for iTestGroup, oTestGroup in enumerate(aoAllRelevantTestGroups): 811 809 812 810 # Is it a member? -
trunk/src/VBox/ValidationKit/testmanager/webui/wuihlpgraphmatplotlib.py
r98103 r98655 157 157 158 158 aoBars = []; 159 for i, _in enumerate(aoSeries):159 for i, oValue in enumerate(aoSeries): 160 160 sColor = self.calcSeriesColor(i); 161 161 aoBars.append(oSubPlot.bar(oXRange + self.cxBarWidth * i, 162 aoSeries[i],162 oValue, 163 163 self.cxBarWidth, 164 164 color = sColor, … … 176 176 oSubPlot.grid(True); 177 177 fpPadding = (fpMax - fpMin) * 0.02; 178 for i, _ in enumerate(aoBars): 179 aoRects = aoBars[i] 180 for j, _ in enumerate(aoRects): 181 oRect = aoRects[j]; 178 for i, aoRects in enumerate(aoBars): 179 for j, oRect in enumerate(aoRects): 182 180 fpValue = float(aoTable[j + 1].aoValues[i]); 183 181 if fpValue <= fpMid: -
trunk/src/VBox/ValidationKit/tests/additions/tdAddGuestCtrl.py
r98651 r98655 3377 3377 oThreadReboot = threading.Thread(target = self.threadForTestGuestCtrlSessionReboot, 3378 3378 args = (oGuestProcess,), 3379 name = ('threadForTestGuestCtrlSessionReboot'));3379 name = 'threadForTestGuestCtrlSessionReboot'); 3380 3380 oThreadReboot.setDaemon(True); # pylint: disable=deprecated-method 3381 3381 oThreadReboot.start(); -
trunk/src/VBox/ValidationKit/tests/installation/tdGuestOsInstTest1.py
r98651 r98655 312 312 """ 313 313 314 if False is True: 314 if False is True: # placeholder. pylint: disable=comparison-of-constants 315 315 pass; 316 316 elif asArgs[iArg] == '--ioapic': -
trunk/src/VBox/ValidationKit/tests/usb/usbgadget.py
r98103 r98655 562 562 self.fnTask = fnTask; 563 563 self.aTaskArgs = aArgs; 564 self.oThread = threading.Thread(target=self.taskThread, args=(), name= ('UTS-%s' % (sStatus)));564 self.oThread = threading.Thread(target=self.taskThread, args=(), name='UTS-%s' % (sStatus,)); 565 565 self.oThread.setDaemon(True); # pylint: disable=deprecated-method 566 566 self.msStart = base.timestampMilli(); … … 605 605 if sys.version_info < (3, 9, 0): 606 606 # Removed since Python 3.9. 607 return oThread.isAlive(); # pylint: disable=no-member 607 return oThread.isAlive(); # pylint: disable=no-member,deprecated-method 608 608 return oThread.is_alive(); 609 609
Note:
See TracChangeset
for help on using the changeset viewer.