1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

formatting

This commit is contained in:
Kelly Brazil
2021-10-22 15:39:02 -07:00
parent 6d18c0ba61
commit f36b3789e8

View File

@ -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