From 597b93798a804cde1783d6d2ab53b348d57c44cd Mon Sep 17 00:00:00 2001 From: Tom Rondeau <tom@trondeau.com> Date: Mon, 7 Jul 2014 12:18:00 -0400 Subject: Removing trailing/extra whitespaces before release. We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace). --- grc/python/Block.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'grc/python/Block.py') diff --git a/grc/python/Block.py b/grc/python/Block.py index 5dffcb3124..7a1c3a254f 100644 --- a/grc/python/Block.py +++ b/grc/python/Block.py @@ -34,11 +34,11 @@ class Block(_Block, _GUIBlock): def __init__(self, flow_graph, n): """ Make a new block from nested data. - + Args: flow: graph the parent element n: the nested odict - + Returns: block a new block """ @@ -65,14 +65,14 @@ class Block(_Block, _GUIBlock): bus_structure = self._bus_structure_source; else: bus_structure = self._bus_structure_sink; - + bus_structure = self.resolve_dependencies(bus_structure); - + if not bus_structure: return '' try: clean_bus_structure = self.get_parent().evaluate(bus_structure) return clean_bus_structure - + except: return '' def throttle(self): return bool(self._throttle) @@ -124,10 +124,10 @@ class Block(_Block, _GUIBlock): def port_controller_modify(self, direction): """ Change the port controller. - + Args: direction: +1 or -1 - + Returns: true for change """ @@ -161,7 +161,7 @@ class Block(_Block, _GUIBlock): Split each import statement at newlines. Combine all import statments into a list. Filter empty imports. - + Returns: a list of import statements """ @@ -173,7 +173,7 @@ class Block(_Block, _GUIBlock): def get_callbacks(self): """ Get a list of function callbacks for this block. - + Returns: a list of strings """ -- cgit v1.2.3