Content-Length: 288505 | pFad | http://github.com/python/cpython/commit/a4d132a868902ee2f1d73bf50de7af229ae72991

37 [from 1999/08/28] · python/cpython@a4d132a · GitHub
Skip to content

Commit a4d132a

Browse files
committed
[from 1999/08/28]
Apparently os.name is "nt" or "posix" or we don't care. Cosmetic tweaks.
1 parent 65bb328 commit a4d132a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/distutils/spawn.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,19 @@ def spawn (cmd,
3333

3434
if os.name == 'posix':
3535
_spawn_posix (cmd, search_path, verbose, dry_run)
36-
elif os.name in ( 'nt', 'windows' ): # ???
36+
elif os.name == 'nt':
3737
_spawn_nt (cmd, search_path, verbose, dry_run)
3838
else:
3939
raise DistutilsPlatformError, \
4040
"don't know how to spawn programs on platform '%s'" % os.name
4141

4242
# spawn ()
4343

44+
4445
def _spawn_nt ( cmd,
4546
search_path=1,
4647
verbose=0,
4748
dry_run=0):
48-
import string
4949
executable = cmd[0]
5050
if search_path:
5151
paths = string.split( os.environ['PATH'], os.pathsep)

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/python/cpython/commit/a4d132a868902ee2f1d73bf50de7af229ae72991

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy