##// END OF EJS Templates
Raise UsageError instead of Deprecation warning
Matthias Bussonnier -
Show More
@@ -294,7 +294,7 b' Currently the magic system has the following functions:""",'
294 prun : run code using the Python profiler
294 prun : run code using the Python profiler
295 (:meth:`~IPython.core.magics.execution.ExecutionMagics.prun`)
295 (:meth:`~IPython.core.magics.execution.ExecutionMagics.prun`)
296 """
296 """
297 raise DeprecationWarning("The `%profile` magic has been deprecated since IPython 2.0. "
297 raise UsageError("The `%profile` magic has been deprecated since IPython 2.0. "
298 "and removed in IPython 6.0. Please use the value of `get_ipython().profile` instead "
298 "and removed in IPython 6.0. Please use the value of `get_ipython().profile` instead "
299 "to see current profile in use. Perhaps you meant to use `%prun` to profile code?")
299 "to see current profile in use. Perhaps you meant to use `%prun` to profile code?")
300
300
General Comments 0
You need to be logged in to leave comments. Login now