Skip to content

Commit

Permalink
Remove apparently unnecessary cast to list.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jun 28, 2024
1 parent 7babb5d commit 2db5527
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions distutils/spawn.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,6 @@ def spawn(cmd, search_path=1, verbose=0, dry_run=0, env=None):
Raise DistutilsExecError if running the program fails in any way; just
return on success.
"""
# cmd is documented as a list, but just in case some code passes a tuple
# in, protect our %-formatting code against horrible death
cmd = list(cmd)

log.info(subprocess.list2cmdline(cmd))
if dry_run:
return
Expand Down

0 comments on commit 2db5527

Please sign in to comment.