##// END OF EJS Templates
Backport PR #8985: override vformat instead of _vformat...
Backport PR #8985: override vformat instead of _vformat in our eval formatters avoids being caught out by changes in private API this needs to be backported in order to support Python 3.4.4 ...

File last commit:

r21515:2c9013e4
r21825:52b26b16
Show More
nbconvert.py
19 lines | 641 B | text/x-python | PythonLexer
Min RK
shim nbconvert
r20906 """
Shim to maintain backwards compatibility with old IPython.nbconvert imports.
"""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
import sys
from warnings import warn
Min RK
add ShimWarning for shimmed imports...
r21515 from IPython.utils.shimmodule import ShimModule, ShimWarning
Min RK
shim nbconvert
r20906
Min RK
add ShimWarning for shimmed imports...
r21515 warn("The `IPython.nbconvert` package has been deprecated. "
"You should import from ipython_nbconvert instead.", ShimWarning)
Min RK
shim nbconvert
r20906
# Unconditionally insert the shim into sys.modules so that further import calls
# trigger the custom attribute access above
Min RK
add import hook for shim packages...
r20990 sys.modules['IPython.nbconvert'] = ShimModule(
Min RK
jupyter_nbconvert is now nbconvert...
r21339 src='IPython.nbconvert', mirror='nbconvert')