summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
Diffstat (limited to 'grc')
-rw-r--r--grc/core/FlowGraph.py4
-rw-r--r--grc/core/generator/cpp_top_block.py4
-rw-r--r--grc/gui/ParamWidgets.py4
3 files changed, 6 insertions, 6 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'
diff --git a/grc/gui/ParamWidgets.py b/grc/gui/ParamWidgets.py
index f5425bc10e..665a1ff524 100644
--- a/grc/gui/ParamWidgets.py
+++ b/grc/gui/ParamWidgets.py
@@ -360,8 +360,8 @@ class DirectoryParam(FileParam):
dir_dialog.set_current_folder(dirname)
dir_dialog.set_local_only(True)
dir_dialog.set_select_multiple(False)
-
- # Show dialog and update paramter on success
+
+ # Show dialog and update parameter on success
if Gtk.ResponseType.OK == dir_dialog.run():
path = dir_dialog.get_filename()
self._input.set_text(path)