##// END OF EJS Templates
add deprecated shim for IPython.Config...
Min RK -
Show More
@@ -22,6 +22,7 b' from __future__ import absolute_import'
22 22
23 23 import os
24 24 import sys
25 import warnings
25 26
26 27 #-----------------------------------------------------------------------------
27 28 # Setup everything
@@ -143,3 +144,14 b' def start_kernel(argv=None, **kwargs):'
143 144 from IPython.kernel.zmq.kernelapp import launch_new_instance
144 145 return launch_new_instance(argv=argv, **kwargs)
145 146
147 # deprecated shim for IPython.Config
148 import traitlets.config
149 class Config(traitlets.config.Config):
150 def __init__(self, *args, **kwargs):
151 warnings.warn(
152 "IPython.Config is deprecated and will be removed in IPython 5."
153 " Use traitlets.config.Config.",
154 DeprecationWarning, stacklevel=2,
155 )
156 super(Config, self).__init__(*args, **kwargs)
157
General Comments 0
You need to be logged in to leave comments. Login now