diff options
author | cookedm <cookedm@localhost> | 2007-12-26 07:08:16 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2007-12-26 07:08:16 +0000 |
commit | 87f61abda82e21fc77facd3931e0182dd564c3a0 (patch) | |
tree | 2e21b844c860a76a98cf4badd0e2761051bb10f0 /numpy/distutils/interactive.py | |
parent | 2a726d25c8404aa21bb9ab5a6f9af82b3ccf4a47 (diff) | |
download | numpy-87f61abda82e21fc77facd3931e0182dd564c3a0.tar.gz |
Replace numpy.distutils.exec_command.splitcmdline with shlex.split instead.
It has the same problems as our old numpy.distutils.ccompiler.split_quoted.
splitcmdline still exists, but uses shlex.split, and issues a DeprecationWarning
This has the positive side effect of not having numpy.distutils pulled in
when numpy is imported -- there was a use of splitcmdline in numpy.testing.
Diffstat (limited to 'numpy/distutils/interactive.py')
-rw-r--r-- | numpy/distutils/interactive.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/interactive.py b/numpy/distutils/interactive.py index bc741254d..2c10154e6 100644 --- a/numpy/distutils/interactive.py +++ b/numpy/distutils/interactive.py @@ -50,7 +50,7 @@ Proposed sys.argv = %s """ % (ccompiler, fcompiler, argv) -from exec_command import splitcmdline +import shlex def edit_argv(*args): argv = args[0] @@ -62,7 +62,7 @@ def edit_argv(*args): except EOFError: return if s: - argv[1:] = splitcmdline(s) + argv[1:] = shlex.split(s) return def interactive_sys_argv(argv): |