summaryrefslogtreecommitdiff
path: root/grc/python/Generator.py
diff options
context:
space:
mode:
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: