mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-07-15 01:24:29 +02:00
del null keys
This commit is contained in:
@ -135,6 +135,12 @@ class _LsUsb():
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if line_obj[temp_obj['key']]['value'] is None:
|
||||||
|
del line_obj[temp_obj['key']]['value']
|
||||||
|
|
||||||
|
if line_obj[temp_obj['key']]['description'] is None:
|
||||||
|
del line_obj[temp_obj['key']]['description']
|
||||||
|
|
||||||
return line_obj
|
return line_obj
|
||||||
|
|
||||||
def _set_sections(self, line):
|
def _set_sections(self, line):
|
||||||
|
Reference in New Issue
Block a user