diff options
author | Josh Morman <jmorman@gnuradio.org> | 2021-11-24 12:48:20 -0500 |
---|---|---|
committer | mormj <34754695+mormj@users.noreply.github.com> | 2021-11-24 14:41:53 -0500 |
commit | 817fc3ce9cdc819a291e76ec324c4e748381f035 (patch) | |
tree | ed00faf5ea2c0f5a8caaba0ce41cd816dd6ca958 /grc/core/blocks/_build.py | |
parent | e776d673aa51b5ef19e16cfb6d22098c0b14a679 (diff) |
grc: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'grc/core/blocks/_build.py')
-rw-r--r-- | grc/core/blocks/_build.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/grc/core/blocks/_build.py b/grc/core/blocks/_build.py index 40155fc84f..91ebef1a42 100644 --- a/grc/core/blocks/_build.py +++ b/grc/core/blocks/_build.py @@ -79,7 +79,8 @@ def build_ports(ports_raw, direction): port_id = port.setdefault('id', str(next(stream_port_ids))) if port_id in port_ids: - raise Exception('Port id "{}" already exists in {}s'.format(port_id, direction)) + raise Exception( + 'Port id "{}" already exists in {}s'.format(port_id, direction)) port_ids.add(port_id) ports.append(port) @@ -137,16 +138,19 @@ def _single_mako_expr(value, block_id): return None value = value.strip() if not (value.startswith('${') and value.endswith('}')): - raise ValueError('{} is not a mako substitution in {}'.format(value, block_id)) + raise ValueError( + '{} is not a mako substitution in {}'.format(value, block_id)) return value[2:-1].strip() def _validate_option_attributes(param_data, block_id): if param_data['dtype'] != 'enum': - send_warning('{} - option_attributes are for enums only, ignoring'.format(block_id)) + send_warning( + '{} - option_attributes are for enums only, ignoring'.format(block_id)) del param_data['option_attributes'] else: for key in list(param_data['option_attributes'].keys()): if key in dir(str): del param_data['option_attributes'][key] - send_warning('{} - option_attribute "{}" overrides str, ignoring'.format(block_id, key)) + send_warning( + '{} - option_attribute "{}" overrides str, ignoring'.format(block_id, key)) |