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/Platform.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'grc/core/Platform.py') diff --git a/grc/core/Platform.py b/grc/core/Platform.py index 844693d14b..10e75d797d 100644 --- a/grc/core/Platform.py +++ b/grc/core/Platform.py @@ -199,7 +199,7 @@ class Platform(Element): n['block_wrapper_path'] = xml_file # inject block wrapper path # Get block instance and add it to the list of blocks block = self.Block(self._flow_graph, n) - key = block.get_key() + key = block.key if key in self.blocks: print('Warning: Block with key "{}" already exists.\n\tIgnoring: {}'.format(key, xml_file), file=sys.stderr) else: # Store the block @@ -207,7 +207,7 @@ class Platform(Element): self._blocks_n[key] = n self._docstring_extractor.query( - block.get_key(), + block.key, block.get_imports(raw=True), block.get_make(raw=True) ) -- cgit v1.2.3