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/utils/epy_block_io.py | |
parent | e776d673aa51b5ef19e16cfb6d22098c0b14a679 (diff) |
grc: pep8 formatting
Signed-off-by: Josh Morman <jmorman@gnuradio.org>
Diffstat (limited to 'grc/core/utils/epy_block_io.py')
-rw-r--r-- | grc/core/utils/epy_block_io.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/grc/core/utils/epy_block_io.py b/grc/core/utils/epy_block_io.py index 58becc4f2b..9947fa4831 100644 --- a/grc/core/utils/epy_block_io.py +++ b/grc/core/utils/epy_block_io.py @@ -12,7 +12,8 @@ TYPE_MAP = { 'int8': 'byte', 'uint8': 'byte', } -BlockIO = collections.namedtuple('BlockIO', 'name cls params sinks sources doc callbacks') +BlockIO = collections.namedtuple( + 'BlockIO', 'name cls params sinks sources doc callbacks') def _ports(sigs, msgs): @@ -72,11 +73,13 @@ def extract(cls): def settable(attr): try: - return callable(getattr(cls, attr).fset) # check for a property with setter + # check for a property with setter + return callable(getattr(cls, attr).fset) except AttributeError: return attr in instance.__dict__ # not dir() - only the instance attribs - callbacks = [attr for attr in dir(instance) if attr in init_args and settable(attr)] + callbacks = [attr for attr in dir( + instance) if attr in init_args and settable(attr)] sinks = _ports(instance.in_sig(), pmt.to_python(instance.message_ports_in())) |