1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-09 17:38:00 +00:00

msifixup.py: replace pipes.quote with shlex.quote.

Debian #1084583 points out that Python 3.13 is going to get rid of the
'pipes' module completely. shlex.quote has been available as a
replacement for ages.

(Not that Debian actually cares, since they don't re-run our wobbly
edifice of MSI build bodges! But thanks to some bug reporter for
pointing it out anyway.)
This commit is contained in:
Simon Tatham 2024-10-07 20:41:35 +01:00
parent eacf7ff79d
commit 9c4cadccc2

View File

@ -5,12 +5,12 @@ import os
import tempfile
import shutil
import subprocess
import pipes
import shlex
def run(command, verbose):
if verbose:
sys.stdout.write("$ {}\n".format(" ".join(
pipes.quote(word) for word in command)))
shlex.quote(word) for word in command)))
out = subprocess.check_output(command)
if verbose:
sys.stdout.write("".join(