From 08b12dbb00558c9b63c5c542a5abded319ce2426 2018-08-06 15:44:55 From: Matthias Bussonnier Date: 2018-08-06 15:44:55 Subject: [PATCH] Merge pull request #11251 from Carreau/deprecated-imports Update deprecation 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