Skip to content

Commit

Permalink
Fix for python3 compile issue (UnicodeDecodeError)
Browse files Browse the repository at this point in the history
Addresses Issue gnuradio#180
Provides a backward compatible fix to read the kernel_file.
  • Loading branch information
litmaj0r authored and noc0lour committed Jun 29, 2018
1 parent 8dbffe9 commit b085651
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen/volk_kernel_defs.py
Expand Up @@ -164,7 +164,7 @@ class kernel_class:
def __init__(self, kernel_file):
self.name = os.path.splitext(os.path.basename(kernel_file))[0]
self.pname = self.name.replace('volk_', 'p_')
code = open(kernel_file, 'r').read()
code = open(kernel_file, 'r').read().decode("utf-8")
code = comment_remover(code)
sections = split_into_nested_ifdef_sections(code)
self._impls = list()
Expand Down

0 comments on commit b085651

Please sign in to comment.