summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
authorSebastian Koslowski <koslowski@kit.edu>2015-11-11 22:31:58 +0100
committerSebastian Koslowski <koslowski@kit.edu>2015-11-11 22:31:58 +0100
commita6becbdc13cc3bdb8b8178d5109e2a47fe2a1a21 (patch)
tree38853276be1eb06e152961d3836d10cb111e09bd /grc/python/Generator.py
parent2252b5caa205c792ac70a16e956b22cfc2d781df (diff)
grc: fix output file encoding
Diffstat (limited to 'grc/python/Generator.py')
-rw-r--r--grc/python/Generator.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 0b9469b588..f064c7528f 100644
--- a/grc/python/Generator.py
+++ b/grc/python/Generator.py
@@ -109,7 +109,7 @@ class TopBlockGenerator(object):
"removing the throttle block.")
# generate
for filename, data in self._build_python_code_from_template():
- with open(filename, 'w', encoding='utf-8') as fp:
+ with codecs.open(filename, 'w', encoding='utf-8') as fp:
fp.write(data)
if filename == self.get_file_path():
try: