From 9c4cadccc2dc6244bc6bcfd866a0b2af472631c0 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 7 Oct 2024 20:41:35 +0100 Subject: [PATCH] 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.) --- windows/msifixup.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/msifixup.py b/windows/msifixup.py index 11606417..997ab04d 100755 --- a/windows/msifixup.py +++ b/windows/msifixup.py @@ -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(