Index: /trunk/src/VBox/ValidationKit/testboxscript/testboxcommons.py
===================================================================
--- /trunk/src/VBox/ValidationKit/testboxscript/testboxcommons.py	(revision 65969)
+++ /trunk/src/VBox/ValidationKit/testboxscript/testboxcommons.py	(revision 65970)
@@ -107,5 +107,5 @@
                 fnLogger1('internal-error: Hit exception #2! %s' % (traceback.format_exc()), sCaller, sTsPrf);
 
-            if len(asInfo) > 0:
+            if asInfo:
                 # Do the logging.
                 for sItem in asInfo:
Index: /trunk/src/VBox/ValidationKit/testboxscript/testboxscript.py
===================================================================
--- /trunk/src/VBox/ValidationKit/testboxscript/testboxscript.py	(revision 65969)
+++ /trunk/src/VBox/ValidationKit/testboxscript/testboxscript.py	(revision 65970)
@@ -89,5 +89,5 @@
         asArgs = sys.argv[1:];
         asArgs.insert(0, sRealScript);
-        if sys.executable is not None and len(sys.executable) > 0:
+        if sys.executable:
             asArgs.insert(0, sys.executable);
 
@@ -100,5 +100,5 @@
             if asArgs[i] == '--':
                 break;
-        if sPidFile is not None and len(sPidFile) > 0:
+        if sPidFile:
             oPidFile = open(sPidFile, 'w');
             oPidFile.write(str(os.getpid()));
Index: /trunk/src/VBox/ValidationKit/testboxscript/testboxscript_real.py
===================================================================
--- /trunk/src/VBox/ValidationKit/testboxscript/testboxscript_real.py	(revision 65969)
+++ /trunk/src/VBox/ValidationKit/testboxscript/testboxscript_real.py	(revision 65970)
@@ -233,5 +233,5 @@
         os.environ['TESTBOX_TIMEOUT_ABS']       = '0';
 
-        if utils.getHostOs() is 'win':
+        if utils.getHostOs() == 'win':
             os.environ['COMSPEC']            = os.path.join(os.environ['SystemRoot'], 'System32', 'cmd.exe');
         # Currently omitting any kBuild tools.
@@ -1009,5 +1009,5 @@
         for sPrefix in ['sBuilds', 'sTestRsrc']:
             sType = getattr(oOptions, sPrefix + 'ServerType');
-            if sType is None or len(sType.strip()) == 0:
+            if sType is None or not sType.strip():
                 setattr(oOptions, sPrefix + 'ServerType', None);
             elif sType not in ['cifs', 'nfs']:
Index: /trunk/src/VBox/ValidationKit/testboxscript/testboxtasks.py
===================================================================
--- /trunk/src/VBox/ValidationKit/testboxscript/testboxtasks.py	(revision 65969)
+++ /trunk/src/VBox/ValidationKit/testboxscript/testboxtasks.py	(revision 65970)
@@ -195,5 +195,5 @@
 
         # If there is anything to flush, flush it.
-        if len(asBackLog) > 0:
+        if asBackLog:
             sBody = '';
             for sLine in asBackLog:
@@ -357,5 +357,5 @@
 
         if asArgs[0].endswith('.py') and fWithInterpreter:
-            if sys.executable is not None  and  len(sys.executable) > 0:
+            if sys.executable:
                 asArgs.insert(0, sys.executable);
             else:
@@ -380,5 +380,5 @@
 
             # EOF?
-            if len(sLine) == 0:
+            if not sLine:
                 break;
 
@@ -583,5 +583,5 @@
         # Tell the script to clean up.
         #
-        if len(self._sScriptCmdLine) > 0: # can be empty if cleanup crashed.
+        if self._sScriptCmdLine: # can be empty if cleanup crashed.
             (fRc, self._oChild) = self._spawnChild('cleanup-after');
             if fRc is True:
@@ -817,5 +817,5 @@
         for sArchive in asArchives:
             sArchive = sArchive.strip();
-            if len(sArchive) == 0:
+            if not sArchive:
                 continue;
 
Index: /trunk/src/VBox/ValidationKit/testboxscript/testboxupgrade.py
===================================================================
--- /trunk/src/VBox/ValidationKit/testboxscript/testboxupgrade.py	(revision 65969)
+++ /trunk/src/VBox/ValidationKit/testboxscript/testboxupgrade.py	(revision 65970)
@@ -124,5 +124,5 @@
     asArgs = [os.path.join(sUpgradeDir, 'testboxscript', 'testboxscript', 'testboxscript.py'), '--version' ];
     testboxcommons.log('Testing the new testbox script (%s)...' % (asArgs[0],));
-    if sys.executable is not None and len(sys.executable) > 0:
+    if sys.executable:
         asArgs.insert(0, sys.executable);
     oChild = subprocess.Popen(asArgs, shell = False, stdout=subprocess.PIPE, stderr=subprocess.STDOUT);
