summaryrefslogtreecommitdiff
path: root/grc
diff options
context:
space:
mode:
authorJohnathan Corgan <johnathan@corganlabs.com>2016-12-10 14:41:40 -0800
committerJohnathan Corgan <johnathan@corganlabs.com>2016-12-10 14:41:40 -0800
commiteeb34f8275bdb2bbd9f5bffc40afa2dd2cc7ddae (patch)
tree0ee1ca7f92a5bea0f06d4a614ebab988b1cb1a2a /grc
parent3b62e91fb8a7be8695e3cc362d899b242d3e97f5 (diff)
parent0ec18440b11abe865f463474d99cf59be18b207f (diff)
Merge branch 'master' into next
Diffstat (limited to 'grc')
-rw-r--r--grc/core/generator/Generator.py2
-rw-r--r--grc/core/utils/epy_block_io.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/grc/core/generator/Generator.py b/grc/core/generator/Generator.py
index 33d50d6b19..66b6f3fcff 100644
--- a/grc/core/generator/Generator.py
+++ b/grc/core/generator/Generator.py
@@ -243,7 +243,7 @@ class TopBlockGenerator(object):
}
# Build the template
t = Template(open(FLOW_GRAPH_TEMPLATE, 'r').read(), namespace)
- output.append((self.file_path, str(t)))
+ output.append((self.file_path, "\n".join(line.rstrip() for line in str(t).split("\n"))))
return output
diff --git a/grc/core/utils/epy_block_io.py b/grc/core/utils/epy_block_io.py
index 53a1bb3c72..a094ab7ad5 100644
--- a/grc/core/utils/epy_block_io.py
+++ b/grc/core/utils/epy_block_io.py
@@ -25,7 +25,7 @@ def _ports(sigs, msgs):
for msg_key in msgs:
if msg_key == 'system':
continue
- ports.append((msg_key, 'message', None))
+ ports.append((msg_key, 'message', 1))
return ports