From 505b0f4c11acb1ade1e91f1360ffa6a33cbd0b51 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Fri, 19 Jun 2015 19:54:15 -0600 Subject: MAINT: Mark deprecation warning with a date and Numpy version. This is to make it easier to find and remove deprecated features. It would be a good idea if all deprecations were made with similar comments. --- numpy/distutils/exec_command.py | 1 + 1 file changed, 1 insertion(+) (limited to 'numpy/distutils/exec_command.py') diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py index baf81f337..d210bc27b 100644 --- a/numpy/distutils/exec_command.py +++ b/numpy/distutils/exec_command.py @@ -74,6 +74,7 @@ def get_pythonexe(): def splitcmdline(line): import warnings + # 2007-12-26 RemoveMe warnings.warn('splitcmdline is deprecated; use shlex.split', DeprecationWarning) return shlex.split(line) -- cgit v1.2.1 From 16f1622afa6be491a17c8b21f6fec30c2de4d752 Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sat, 20 Jun 2015 13:49:59 -0600 Subject: DEP,MAINT: Remove deprecated splitcmdline. Was in numpy/distutils/exec_command.py. Update 1.10-notes.rst. --- numpy/distutils/exec_command.py | 7 ------- 1 file changed, 7 deletions(-) (limited to 'numpy/distutils/exec_command.py') diff --git a/numpy/distutils/exec_command.py b/numpy/distutils/exec_command.py index d210bc27b..f4b6f5928 100644 --- a/numpy/distutils/exec_command.py +++ b/numpy/distutils/exec_command.py @@ -72,13 +72,6 @@ def get_pythonexe(): assert os.path.isfile(pythonexe), '%r is not a file' % (pythonexe,) return pythonexe -def splitcmdline(line): - import warnings - # 2007-12-26 RemoveMe - warnings.warn('splitcmdline is deprecated; use shlex.split', - DeprecationWarning) - return shlex.split(line) - def find_executable(exe, path=None, _cache={}): """Return full path of a executable or None. -- cgit v1.2.1