diff options
Diffstat (limited to 'grc/core')
-rw-r--r-- | grc/core/FlowGraph.py | 4 | ||||
-rw-r--r-- | grc/core/generator/cpp_top_block.py | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/grc/core/FlowGraph.py b/grc/core/FlowGraph.py index f4984d608e..3b952428c4 100644 --- a/grc/core/FlowGraph.py +++ b/grc/core/FlowGraph.py @@ -255,8 +255,8 @@ class FlowGraph(Element): variable_block.rewrite() value = eval(variable_block.value, namespace, variable_block.namespace) namespace[variable_block.name] = value - self.namespace.update(namespace) # rewrite on subsequent blocks depends on an updated self.namespace - except TypeError: #Type Errors may happen, but that desn't matter as they are displayed in the gui + self.namespace.update(namespace) # rewrite on subsequent blocks depends on an updated self.namespace + except TypeError: #Type Errors may happen, but that doesn't matter as they are displayed in the gui pass except Exception: log.exception('Failed to evaluate variable block {0}'.format(variable_block.name), exc_info=True) diff --git a/grc/core/generator/cpp_top_block.py b/grc/core/generator/cpp_top_block.py index b886736b0c..9d264329ef 100644 --- a/grc/core/generator/cpp_top_block.py +++ b/grc/core/generator/cpp_top_block.py @@ -275,8 +275,8 @@ class CppTopBlockGenerator(TopBlockGenerator): # Create an executable fragment of code containing all 'raw' variables in # order to infer the lvalue types. # - # Note that this differs from using ast.literal_eval() as literal_eval evaluates one - # variable at a time. The code fragment below evaluates all varaibles together which + # Note that this differs from using ast.literal_eval() as literal_eval evaluates one + # variable at a time. The code fragment below evaluates all variables together which # allows the variables to reference each other (i.e. a = b * c). prog = 'def get_decl_types():\n' prog += '\tvar_types = {}\n' |