From 03c3d3f030b9dc20a005a00668ca6aa69cb75de0 Mon Sep 17 00:00:00 2001 From: Sebastian Koslowski <koslowski@kit.edu> Date: Wed, 15 Jun 2016 20:49:34 -0700 Subject: grc-refactor: Block: remove key getters --- grc/core/generator/Generator.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grc/core/generator/Generator.py') diff --git a/grc/core/generator/Generator.py b/grc/core/generator/Generator.py index 9c7d07e76b..3664d083e9 100644 --- a/grc/core/generator/Generator.py +++ b/grc/core/generator/Generator.py @@ -98,7 +98,7 @@ class TopBlockGenerator(object): "Add a Misc->Throttle block to your flow " "graph to avoid CPU congestion.") if len(throttling_blocks) > 1: - keys = set([b.get_key() for b in throttling_blocks]) + keys = set([b.key for b in throttling_blocks]) if len(keys) > 1 and 'blocks_throttle' in keys: Messages.send_warning("This flow graph contains a throttle " "block and another rate limiting block, " @@ -156,7 +156,7 @@ class TopBlockGenerator(object): blocks = [b for b in blocks_all if b not in imports and b not in parameters] for block in blocks: - key = block.get_key() + key = block.key file_path = os.path.join(self._dirname, block.get_id() + '.py') if key == 'epy_block': src = block.get_param('_source_code').get_value() -- cgit v1.2.3