[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] [gnuradio] 02/02: grc: Strip trailing whitespace from
From: |
git |
Subject: |
[Commit-gnuradio] [gnuradio] 02/02: grc: Strip trailing whitespace from Python output. |
Date: |
Sat, 10 Dec 2016 22:44:46 +0000 (UTC) |
This is an automated email from the git hooks/post-receive script.
jcorgan pushed a commit to branch maint
in repository gnuradio.
commit 4713574c3d783ebac5ccb6e4c19b23764b41fbfb
Author: Clayton Smith <address@hidden>
Date: Fri Dec 9 06:42:40 2016 -0500
grc: Strip trailing whitespace from Python output.
---
grc/core/generator/Generator.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/grc/core/generator/Generator.py b/grc/core/generator/Generator.py
index 3062440..1e43e37 100644
--- a/grc/core/generator/Generator.py
+++ b/grc/core/generator/Generator.py
@@ -249,7 +249,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