##// END OF EJS Templates
Update deprecation warning message
Matthias Bussonnier -
Show More
@@ -1,11 +1,12 b''
1 """DEPRECATED: Function signature objects for callables.
1 """DEPRECATED: Function signature objects for callables.
2
2
3 Use the standard library version if available, as it is more up to date.
3 Use the standard library version if available, as it is more up to date.
4 Fallback on backport otherwise.
4 Fallback on backport otherwise.
5 """
5 """
6
6
7 import warnings
7 import warnings
8 warnings.warn("{} backport for Python 2 is deprecated in IPython 6, which only supports Python 3".format(__name__),
8 warnings.warn("{} backport for Python 2 is deprecated in IPython 6, which only supports "
9 "Python 3. Import directly from standard library `inspect`".format(__name__),
9 DeprecationWarning, stacklevel=2)
10 DeprecationWarning, stacklevel=2)
10
11
11 from inspect import BoundArguments, Parameter, Signature, signature
12 from inspect import BoundArguments, Parameter, Signature, signature
General Comments 0
You need to be logged in to leave comments. Login now