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/Generator.py | |
parent | 5f4d39e233e041b8a2f5006439a636a49d6e56ea (diff) |
grc-refactor: Block: remove key getters
Diffstat (limited to 'grc/core/generator/Generator.py')
-rw-r--r-- | grc/core/generator/Generator.py | 4 |
1 files changed, 2 insertions, 2 deletions
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() |