From f36b3789e8df6673207d6c2d3d0796acfdfe011d Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 22 Oct 2021 15:39:02 -0700 Subject: [PATCH] formatting --- jc/parsers/lsusb.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jc/parsers/lsusb.py b/jc/parsers/lsusb.py index ff3cce8f..30bf5d68 100644 --- a/jc/parsers/lsusb.py +++ b/jc/parsers/lsusb.py @@ -235,7 +235,7 @@ class _LsUsb(): def _add_attributes(self, line): indent = self._count_indent(line) - # determine whether this is a top-level value or lower-level attribute item + # determine whether this is a top-level value item or lower-level attribute if indent > self.last_indent and self.old_section == self.section: self.attribute_value = True elif indent == self.last_indent and self.attribute_value == True and self.old_section == self.section: @@ -315,7 +315,7 @@ class _LsUsb(): self.attribute_value = False return True - # bus informatin is on the same line so need to extract data immediately and set indexes + # bus information is on the same line so need to extract data immediately and set indexes if line.startswith('Bus '): self.section = 'bus' self.bus_idx += 1