Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rename ExecutionMagics._run_with_profiler argument

  • Loading branch information...
commit 9fd38a60466ed720aebbc7fa9de37106905999a0 1 parent 52b58f9
@tkf authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 IPython/core/magics/execution.py
View
4 IPython/core/magics/execution.py
@@ -183,13 +183,13 @@ def prun(self, parameter_s='', cell=None):
arg_str += '\n' + cell
return self._run_with_profiler(arg_str, opts, self.shell.user_ns)
- def _run_with_profiler(self, arg_str, opts, namespace):
+ def _run_with_profiler(self, code, opts, namespace):
opts.merge(Struct(D=[''], l=[], s=['time'], T=['']))
prof = profile.Profile()
try:
- prof = prof.runctx(arg_str,namespace,namespace)
+ prof = prof.runctx(code, namespace, namespace)
sys_exit = ''
except SystemExit:
sys_exit = """*** SystemExit exception caught in code being profiled."""
Please sign in to comment.
Something went wrong with that request. Please try again.