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