From 5b31996297fc071e9b135e9f79e00259e465ca4d 2020-10-13 16:57:16 From: Justin Palmer Date: 2020-10-13 16:57:16 Subject: [PATCH] Fix return on temp_pyfile() function in utils --- 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):