]> granicus.if.org Git - python/commitdiff
Fixed '_nt_quote_args()': backwards logic reversed, and now it actually
authorGreg Ward <gward@python.net>
Thu, 23 Mar 2000 04:38:36 +0000 (04:38 +0000)
committerGreg Ward <gward@python.net>
Thu, 23 Mar 2000 04:38:36 +0000 (04:38 +0000)
returns a value.

Lib/distutils/spawn.py

index ae3d09fa318e87ab50f366d04643f8af28d4b0c2..4e6f20699140a715c72b2eb6ac6f09358be56330 100644 (file)
@@ -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,