mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 01:48: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:
parent
eacf7ff79d
commit
9c4cadccc2
@ -5,12 +5,12 @@ import os
|
|||||||
import tempfile
|
import tempfile
|
||||||
import shutil
|
import shutil
|
||||||
import subprocess
|
import subprocess
|
||||||
import pipes
|
import shlex
|
||||||
|
|
||||||
def run(command, verbose):
|
def run(command, verbose):
|
||||||
if verbose:
|
if verbose:
|
||||||
sys.stdout.write("$ {}\n".format(" ".join(
|
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)
|
out = subprocess.check_output(command)
|
||||||
if verbose:
|
if verbose:
|
||||||
sys.stdout.write("".join(
|
sys.stdout.write("".join(
|
||||||
|
Loading…
Reference in New Issue
Block a user