From: Greg Ward Date: Thu, 23 Mar 2000 04:38:36 +0000 (+0000) Subject: Fixed '_nt_quote_args()': backwards logic reversed, and now it actually X-Git-Tag: v1.6a1~163 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e2a33079e9325781dcbc549921664c6ff92d86b9;p=thirdparty%2FPython%2Fcpython.git Fixed '_nt_quote_args()': backwards logic reversed, and now it actually returns a value. --- diff --git a/Lib/distutils/spawn.py b/Lib/distutils/spawn.py index ae3d09fa318e..4e6f20699140 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,