##// END OF EJS Templates
shim out traitlets, config
Min RK -
Show More
@@ -0,0 +1,18 b''
1 """
2 Shim to maintain backwards compatibility with old IPython.config imports.
3 """
4 # Copyright (c) IPython Development Team.
5 # Distributed under the terms of the Modified BSD License.
6
7 import sys
8 from warnings import warn
9
10 warn("The `IPython.config` package has been deprecated. "
11 "You should import from traitlets.config instead.")
12
13 from IPython.utils.shimmodule import ShimModule
14
15 # Unconditionally insert the shim into sys.modules so that further import calls
16 # trigger the custom attribute access above
17
18 sys.modules['IPython.config'] = ShimModule(src='IPython.config', mirror='traitlets.config')
@@ -0,0 +1,1 b''
1 from traitlets.traitlets import *
General Comments 0
You need to be logged in to leave comments. Login now