Closed nega0 closed 5 years ago
This change broke Python <2.6 support(which I am fine with, just noting a workaround).
If someone needs to support such ancient systems, they need to number the added format fields: https://docs.python.org/2/library/string.html#format-string-syntax
if m.group(3):
model = '{0}-{1} {2} {3}'.format(m.group(2), m.group(3), m.group(4), m.group(1))
else:
model = '{0} {1:>10} {2}'.format(m.group(2), m.group(4), m.group(1))
continue
If the "drive model" looks seagate-ish, reformat it so it's more meaningful.
This:
becomes this: