##// END OF EJS Templates
Add some missing deprecation warnings
Matthias Bussonnier -
Show More
@@ -251,31 +251,31 b' def get_xdg_cache_dir():'
251
251
252 @undoc
252 @undoc
253 def get_ipython_dir():
253 def get_ipython_dir():
254 warn("get_ipython_dir has moved to the IPython.paths module since IPython 4.0.", stacklevel=2)
254 warn("get_ipython_dir has moved to the IPython.paths module since IPython 4.0.", DeprecationWarning, stacklevel=2)
255 from IPython.paths import get_ipython_dir
255 from IPython.paths import get_ipython_dir
256 return get_ipython_dir()
256 return get_ipython_dir()
257
257
258 @undoc
258 @undoc
259 def get_ipython_cache_dir():
259 def get_ipython_cache_dir():
260 warn("get_ipython_cache_dir has moved to the IPython.paths module since IPython 4.0.", stacklevel=2)
260 warn("get_ipython_cache_dir has moved to the IPython.paths module since IPython 4.0.", DeprecationWarning, stacklevel=2)
261 from IPython.paths import get_ipython_cache_dir
261 from IPython.paths import get_ipython_cache_dir
262 return get_ipython_cache_dir()
262 return get_ipython_cache_dir()
263
263
264 @undoc
264 @undoc
265 def get_ipython_package_dir():
265 def get_ipython_package_dir():
266 warn("get_ipython_package_dir has moved to the IPython.paths module since IPython 4.0.", stacklevel=2)
266 warn("get_ipython_package_dir has moved to the IPython.paths module since IPython 4.0.", DeprecationWarning, stacklevel=2)
267 from IPython.paths import get_ipython_package_dir
267 from IPython.paths import get_ipython_package_dir
268 return get_ipython_package_dir()
268 return get_ipython_package_dir()
269
269
270 @undoc
270 @undoc
271 def get_ipython_module_path(module_str):
271 def get_ipython_module_path(module_str):
272 warn("get_ipython_module_path has moved to the IPython.paths module since IPython 4.0.", stacklevel=2)
272 warn("get_ipython_module_path has moved to the IPython.paths module since IPython 4.0.", DeprecationWarning, stacklevel=2)
273 from IPython.paths import get_ipython_module_path
273 from IPython.paths import get_ipython_module_path
274 return get_ipython_module_path(module_str)
274 return get_ipython_module_path(module_str)
275
275
276 @undoc
276 @undoc
277 def locate_profile(profile='default'):
277 def locate_profile(profile='default'):
278 warn("locate_profile has moved to the IPython.paths module since IPython 4.0.", stacklevel=2)
278 warn("locate_profile has moved to the IPython.paths module since IPython 4.0.", DeprecationWarning, stacklevel=2)
279 from IPython.paths import locate_profile
279 from IPython.paths import locate_profile
280 return locate_profile(profile=profile)
280 return locate_profile(profile=profile)
281
281
General Comments 0
You need to be logged in to leave comments. Login now