Rephrase explanatory comment

This commit is contained in:
Bo Maryniuk 2018-07-29 21:45:40 +02:00
parent 1031e06443
commit fd77f760ee

View file

@ -81,8 +81,7 @@ def get(string, clean=True):
val = _dmidecoder('-s {0}'.format(string)).strip()
# Sometimes dmidecode delivers comments in strings.
# Don't.
# Cleanup possible comments in strings.
val = '\n'.join([v for v in val.split('\n') if not v.startswith('#')])
# handle missing /dev/mem