commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] [gnuradio] 06/08: grc: fix output file encoding


From: git
Subject: [Commit-gnuradio] [gnuradio] 06/08: grc: fix output file encoding
Date: Wed, 11 Nov 2015 23:08:07 +0000 (UTC)

This is an automated email from the git hooks/post-receive script.

jcorgan pushed a commit to branch master
in repository gnuradio.

commit a6becbdc13cc3bdb8b8178d5109e2a47fe2a1a21
Author: Sebastian Koslowski <address@hidden>
Date:   Wed Nov 11 22:31:58 2015 +0100

    grc: fix output file encoding
---
 grc/python/Generator.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/grc/python/Generator.py b/grc/python/Generator.py
index 0b9469b..f064c75 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:



reply via email to

[Prev in Thread] Current Thread [Next in Thread]