]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[from 1999/08/28]
authorGreg Ward <gward@python.net>
Wed, 8 Sep 1999 02:23:28 +0000 (02:23 +0000)
committerGreg Ward <gward@python.net>
Wed, 8 Sep 1999 02:23:28 +0000 (02:23 +0000)
Apparently os.name is "nt" or "posix" or we don't care.
Cosmetic tweaks.

Lib/distutils/spawn.py

index 3a0702dc9d4e64b8a464dd1ea160ca9499f14c26..eee8e7f4a0cee8e9f0d1a972b5f2645aea6aad35 100644 (file)
@@ -33,7 +33,7 @@ def spawn (cmd,
 
     if os.name == 'posix':
         _spawn_posix (cmd, search_path, verbose, dry_run)
-    elif os.name in ( 'nt', 'windows' ):          # ???
+    elif os.name == 'nt':
         _spawn_nt (cmd, search_path, verbose, dry_run)
     else:
         raise DistutilsPlatformError, \
@@ -41,11 +41,11 @@ def spawn (cmd,
 
 # spawn ()
 
+
 def _spawn_nt ( cmd,
                 search_path=1,
                 verbose=0,
                 dry_run=0):
-    import string
     executable = cmd[0]
     if search_path:
         paths = string.split( os.environ['PATH'], os.pathsep)