lib: flake8 cleanup Signed-off-by: Elms <elmsfu@freshred.net>
diff --git a/v2x/lib/argparse_extra.py b/v2x/lib/argparse_extra.py index 6c86f4e..9be1116 100644 --- a/v2x/lib/argparse_extra.py +++ b/v2x/lib/argparse_extra.py
@@ -20,7 +20,7 @@ True >>> parser.parse_args(['--arg', 'no']).arg False - >>> + >>> Use like this for a default on argument which can be turned off; >>> parser = argparse.ArgumentParser() @@ -37,7 +37,7 @@ True >>> parser.parse_args(['--arg', 'no']).arg False - >>> + >>> Converts the following (in can capitalization) to `True`: * yes
diff --git a/v2x/lib/mux.py b/v2x/lib/mux.py index 910a6b6..60c24a4 100644 --- a/v2x/lib/mux.py +++ b/v2x/lib/mux.py
@@ -156,13 +156,17 @@ pb_type_xml.append(ET.Comment(comment)) for port in pins: - #assert port.index < port.width, ( - # "Pin index {} >= width {} for pin {} {}".format(port.index, port.width, port.name, port.pin_type)) + assert port.index < port.width, ( + "Pin index {} >= width {} for pin {} {}".format( + port.index, port.width, port.name, port.pin_type + ) + ) if mux_type == MuxType.ROUTING and port.pin_type == MuxPinType.SELECT: continue - assert port.width == 1 or port.data_width == 1, 'Only one of width(%d) or data_width(%d) may > 1 for pin %s' % ( - port.width, port.data_width, port.name + assert port.width == 1 or port.data_width == 1, ( + 'Only one of width(%d) or data_width(%d) may > 1 for pin %s' % + (port.width, port.data_width, port.name) ) if port.width == 1 and port.data_width > 1: