diff --git a/IPython/utils/io.py b/IPython/utils/io.py index f591603..39163d7 100644 --- a/IPython/utils/io.py +++ b/IPython/utils/io.py @@ -209,7 +209,7 @@ def temp_pyfile(src, ext='.py'): with fname.open('w') as f: f.write(src) f.flush() - return fname + return str(fname) @undoc def atomic_writing(*args, **kwargs):