From a6becbdc13cc3bdb8b8178d5109e2a47fe2a1a21 Mon Sep 17 00:00:00 2001 From: Sebastian Koslowski <koslowski@kit.edu> Date: Wed, 11 Nov 2015 22:31:58 +0100 Subject: grc: fix output file encoding --- grc/python/Generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'grc/python/Generator.py') 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: -- cgit v1.2.3