summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-03-23 04:38:36 (GMT)
committerGreg Ward <gward@python.net>2000-03-23 04:38:36 (GMT)
commite2a33079e9325781dcbc549921664c6ff92d86b9 (patch)
treef30eefde388a095e76bc0e5cb2296743d2838929
parent297dd9fed50f37f3d273e47615e5a927214d5d9e (diff)
downloadcpython-e2a33079e9325781dcbc549921664c6ff92d86b9.zip
cpython-e2a33079e9325781dcbc549921664c6ff92d86b9.tar.gz
cpython-e2a33079e9325781dcbc549921664c6ff92d86b9.tar.bz2
Fixed '_nt_quote_args()': backwards logic reversed, and now it actually
returns a value.
-rw-r--r--Lib/distutils/spawn.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/spawn.py b/Lib/distutils/spawn.py
index ae3d09f..4e6f206 100644
--- a/Lib/distutils/spawn.py
+++ b/Lib/distutils/spawn.py
@@ -53,9 +53,9 @@ def _nt_quote_args (args):
# quoting?)
for i in range (len (args)):
- if string.find (args[i], ' ') == -1:
+ if string.find (args[i], ' ') != -1:
args[i] = '"%s"' % args[i]
-
+ return
def _spawn_nt (cmd,
search_path=1,