- There is a bug when running the profiler in the magic command (prun) with python3 #901

Closed
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+5 −1
Diff settings

Always

Just for now

View
@@ -1382,7 +1382,11 @@ def magic_prun(self, parameter_s ='',user_mode=1,
return
arg_str = 'execfile(filename,prog_ns)'
- namespace = locals()
+ namespace = {
+ 'execfile': self.shell.safe_execfile,
+ 'filename': filename,
+ 'prog_ns': prog_ns
+ }
opts.merge(opts_def)