##// END OF EJS Templates
Add deprecationwarning with stacklevel
Add deprecationwarning with stacklevel

File last commit:

r24146:8f9be5ca
r24146:8f9be5ca
Show More
consoleapp.py
12 lines | 418 B | text/x-python | PythonLexer
"""
Shim to maintain backwards compatibility with old IPython.consoleapp imports.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from warnings import warn
warn("The `IPython.consoleapp` package has been deprecated. "
"You should import from jupyter_client.consoleapp instead.", DeprecationWarning, stacklevel=2)
from jupyter_client.consoleapp import *