summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2020-05-06 07:33:44 +0000
committerPMR <pmr@pmr-lander>2020-05-06 07:33:44 +0000
commit66feca8304774e1c82c8b70625502a0624ae4622 (patch)
treef5187037a087f249c1b33326dc2ae658cf2f916b
parent63f70ab09a6d2b3fb73b6b0f1bece6d4332057f0 (diff)
parent41ef2162929b10f72d8f3330d8b64d566dc8567a (diff)
Merge #383452 from ~bladernr/plainbox-provider-checkbox:1876965-fix-syntaxwarning-messages
LP:1876965 - Fix Syntax Warnings in scripts
-rwxr-xr-xbin/frequency_governors_test2
-rwxr-xr-xbin/removable_storage_test2
2 files changed, 2 insertions, 2 deletions
diff --git a/bin/frequency_governors_test b/bin/frequency_governors_test
index 2b8661e..103f651 100755
--- a/bin/frequency_governors_test
+++ b/bin/frequency_governors_test
@@ -43,7 +43,7 @@ class CPUScalingTest(object):
return None
# otherwise
self.cpufreqDirectories.append(cpufreqDirectory)
- if len(self.cpufreqDirectories) is 0:
+ if len(self.cpufreqDirectories) == 0:
return None
# otherwise
logging.debug("Located the following CPU Freq Directories:")
diff --git a/bin/removable_storage_test b/bin/removable_storage_test
index bbace30..1c31b45 100755
--- a/bin/removable_storage_test
+++ b/bin/removable_storage_test
@@ -249,7 +249,7 @@ class DiskTest():
UDISKS2_BLOCK_INTERFACE in interfaces):
# To be an IO candidate there must be a drive object
drive = interfaces[UDISKS2_BLOCK_INTERFACE].get('Drive:')
- if drive is None or drive is '/':
+ if drive is None or drive == '/':
continue
drive_object = udisks_devices[os.path.basename(drive)]