aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Schulz <quentin.schulz@theobroma-systems.com>2023-06-29 15:49:54 +0200
committerQuentin Schulz <quentin.schulz@theobroma-systems.com>2023-08-04 13:33:31 +0200
commit21ea61ccbd50d62ee12ef68e83ab5ee3d4ff8a2d (patch)
tree667d761dc2b38897d9c188019a1d3b0b5f173434
parentd9140601a2efc2201426895cd61bfdca9fac0fa6 (diff)
usb-control: fix flake8 E712 comparison to True should be 'if cond is True:' or 'if cond:'
Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com>
-rw-r--r--usb-control/command_processor.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb-control/command_processor.py b/usb-control/command_processor.py
index 399b911..ce34e0a 100644
--- a/usb-control/command_processor.py
+++ b/usb-control/command_processor.py
@@ -79,7 +79,7 @@ class CommandProcessor:
def run(self):
# Collect list of potential devices
- if self.ignore_product_string == True:
+ if self.ignore_product_string:
self.product_string = None
# Get list of matching USB devices