diff options
author | Sebastian Koslowski <koslowski@kit.edu> | 2016-06-15 20:49:34 -0700 |
---|---|---|
committer | Sebastian Koslowski <koslowski@kit.edu> | 2016-07-13 16:33:28 +0200 |
commit | 03c3d3f030b9dc20a005a00668ca6aa69cb75de0 (patch) | |
tree | 019c77987920b02e3a06683d3cb37eade25704e8 /grc/core/generator/FlowGraphProxy.py | |
parent | 5f4d39e233e041b8a2f5006439a636a49d6e56ea (diff) |
grc-refactor: Block: remove key getters
Diffstat (limited to 'grc/core/generator/FlowGraphProxy.py')
-rw-r--r-- | grc/core/generator/FlowGraphProxy.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/grc/core/generator/FlowGraphProxy.py b/grc/core/generator/FlowGraphProxy.py index a23c6d84ab..d5d31c0dce 100644 --- a/grc/core/generator/FlowGraphProxy.py +++ b/grc/core/generator/FlowGraphProxy.py @@ -90,7 +90,7 @@ class FlowGraphProxy(object): Returns: a list of pad source blocks in this flow graph """ - pads = [b for b in self.get_enabled_blocks() if b.get_key() == 'pad_source'] + pads = [b for b in self.get_enabled_blocks() if b.key == 'pad_source'] return sorted(pads, lambda x, y: cmp(x.get_id(), y.get_id())) def get_pad_sinks(self): @@ -100,7 +100,7 @@ class FlowGraphProxy(object): Returns: a list of pad sink blocks in this flow graph """ - pads = [b for b in self.get_enabled_blocks() if b.get_key() == 'pad_sink'] + pads = [b for b in self.get_enabled_blocks() if b.key == 'pad_sink'] return sorted(pads, lambda x, y: cmp(x.get_id(), y.get_id())) def get_pad_port_global_key(self, port): @@ -121,7 +121,7 @@ class FlowGraphProxy(object): if is_message_pad: key = pad.get_param('label').get_value() else: - key = str(key_offset + int(port.get_key())) + key = str(key_offset + int(port.key)) return key else: # assuming we have either only sources or sinks |