Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit afb7ff0

Browse files
committed
Remove deprecation warning about IPYTHON_DIR
This has been deprecated since 3.0 No reasons to keep it, it will simplify code a bit
1 parent d85f1aa commit afb7ff0

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

IPython/paths.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ def get_ipython_dir() -> str:
3232
home_dir = get_home_dir()
3333
xdg_dir = get_xdg_dir()
3434

35-
if 'IPYTHON_DIR' in env:
36-
warn('The environment variable IPYTHON_DIR is deprecated since IPython 3.0. '
37-
'Please use IPYTHONDIR instead.', DeprecationWarning)
38-
ipdir = env.get('IPYTHONDIR', env.get('IPYTHON_DIR', None))
35+
ipdir = env.get("IPYTHONDIR", None)
3936
if ipdir is None:
4037
# not set explicitly, use ~/.ipython
4138
ipdir = pjoin(home_dir, ipdir_def)

0 commit comments

Comments
 (0)