##// END OF EJS Templates
Merge pull request #8425 from dwinston/patch-1...
Merge pull request #8425 from dwinston/patch-1 Replace dead link to nose website in install.rst

File last commit:

r21338:2094b99c
r21351:7bba9948 merge
Show More
qt.py
18 lines | 574 B | text/x-python | PythonLexer
Thomas Kluyver
Add shim to preserve IPython.qt imports
r20851 """
Shim to maintain backwards compatibility with old IPython.qt imports.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
from warnings import warn
warn("The `IPython.qt` package has been deprecated. "
Min RK
jupyter_qtconsole is now qtconsole
r21338 "You should import from qtconsole instead.")
Thomas Kluyver
Add shim to preserve IPython.qt imports
r20851
from IPython.utils.shimmodule import ShimModule
# Unconditionally insert the shim into sys.modules so that further import calls
# trigger the custom attribute access above
Min RK
jupyter_qtconsole is now qtconsole
r21338 sys.modules['IPython.qt'] = ShimModule(src='IPython.qt', mirror='qtconsole')