Show More
@@ -147,7 +147,7 class CythonMagics(Magics): | |||
|
147 | 147 | import numpy |
|
148 | 148 | c_include_dirs.append(numpy.get_include()) |
|
149 | 149 | pyx_file = os.path.join(lib_dir, module_name + '.pyx') |
|
150 |
pyx_file = py3compat. |
|
|
150 | pyx_file = py3compat.cast_bytes_py2(pyx_file, encoding=sys.getfilesystemencoding()) | |
|
151 | 151 | with io.open(pyx_file, 'w', encoding='utf-8') as f: |
|
152 | 152 | f.write(code) |
|
153 | 153 | extension = Extension( |
General Comments 0
You need to be logged in to leave comments.
Login now