From d697c122d091d53e9589e9a2dcb05b205073644f 2018-08-04 22:06:22 From: Matthias Bussonnier Date: 2018-08-04 22:06:22 Subject: [PATCH] Update deprecation warning message --- diff --git a/IPython/utils/signatures.py b/IPython/utils/signatures.py index c4d9d1b..88d72b1 100644 --- a/IPython/utils/signatures.py +++ b/IPython/utils/signatures.py @@ -5,7 +5,8 @@ Fallback on backport otherwise. """ import warnings -warnings.warn("{} backport for Python 2 is deprecated in IPython 6, which only supports Python 3".format(__name__), +warnings.warn("{} backport for Python 2 is deprecated in IPython 6, which only supports " + "Python 3. Import directly from standard library `inspect`".format(__name__), DeprecationWarning, stacklevel=2) from inspect import BoundArguments, Parameter, Signature, signature