From 916e4c031de07ab4f7012b6aaa6356f7d5a27ca3 2017-04-05 18:34:26 From: Matthias Bussonnier Date: 2017-04-05 18:34:26 Subject: [PATCH] Raise UsageError instead of Deprecation warning --- diff --git a/IPython/core/magics/basic.py b/IPython/core/magics/basic.py index fb7c4e3..df777a3 100644 --- a/IPython/core/magics/basic.py +++ b/IPython/core/magics/basic.py @@ -294,7 +294,7 @@ Currently the magic system has the following functions:""", prun : run code using the Python profiler (:meth:`~IPython.core.magics.execution.ExecutionMagics.prun`) """ - raise DeprecationWarning("The `%profile` magic has been deprecated since IPython 2.0. " + raise UsageError("The `%profile` magic has been deprecated since IPython 2.0. " "and removed in IPython 6.0. Please use the value of `get_ipython().profile` instead " "to see current profile in use. Perhaps you meant to use `%prun` to profile code?")