From 2db55275fff5512961a2c40e6f211c418096d4ef Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sat, 20 Apr 2024 21:54:38 -0400 Subject: [PATCH] Remove apparently unnecessary cast to list. --- distutils/spawn.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/distutils/spawn.py b/distutils/spawn.py index 3927c1fe9a..a321c5f04c 100644 --- a/distutils/spawn.py +++ b/distutils/spawn.py @@ -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