Skip to content

Commit 2db5527

Browse files
committed
Remove apparently unnecessary cast to list.
1 parent 7babb5d commit 2db5527

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

distutils/spawn.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,6 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0, env=None):
3131
Raise DistutilsExecError if running the program fails in any way; just
3232
return on success.
3333
"""
34-
# cmd is documented as a list, but just in case some code passes a tuple
35-
# in, protect our %-formatting code against horrible death
36-
cmd = list(cmd)
37-
3834
log.info(subprocess.list2cmdline(cmd))
3935
if dry_run:
4036
return

0 commit comments

Comments
 (0)