From d4d6bc63d6c6dd34c5fe1270a90caec2e0208bfa 2013-09-25 08:54:23 From: Cyrille Rossant Date: 2013-09-25 08:54:23 Subject: [PATCH] Using py3compat.unicode_to_str instead of str. --- diff --git a/IPython/extensions/cythonmagic.py b/IPython/extensions/cythonmagic.py index 2908941..bf866f9 100644 --- a/IPython/extensions/cythonmagic.py +++ b/IPython/extensions/cythonmagic.py @@ -218,7 +218,7 @@ class CythonMagics(Magics): key += time.time(), if args.name: - module_name = str(args.name) + module_name = py3compat.unicode_to_str(args.name) else: module_name = "_cython_magic_" + hashlib.md5(str(key).encode('utf-8')).hexdigest() module_path = os.path.join(lib_dir, module_name + self.so_ext)