From: LLVM Packaging Team Date: Tue, 14 Jan 2025 13:16:47 +0000 (+0100) Subject: python3.13-quote X-Git-Tag: archive/raspbian/1%19.1.7-1+rpi1^2~1 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=a2bd21651f3f4022ef3286e7180cde55b3ad4fb1;p=llvm-toolchain-19.git python3.13-quote Gbp-Pq: Name python3.13-quote.diff --- diff --git a/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py b/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py index 5e977ea5ed..9729668798 100755 --- a/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py +++ b/compiler-rt/test/sanitizer_common/ios_commands/iossim_run.py @@ -1,7 +1,10 @@ #!/usr/bin/env python3 -import glob, os, pipes, sys, subprocess - +import glob, os, sys, subprocess +try: + from pipes import quote +except ImportError: + from shlex import quote device_id = os.environ.get("SANITIZER_IOSSIM_TEST_DEVICE_IDENTIFIER") iossim_run_verbose = os.environ.get("SANITIZER_IOSSIM_RUN_VERBOSE") @@ -49,8 +52,7 @@ if prog == "rm": # Don't quote glob pattern rm_args.append(arg) else: - # FIXME(dliew): pipes.quote() is deprecated - rm_args.append(pipes.quote(arg)) + rm_args.append(quote(arg)) rm_cmd_line = ["/bin/rm"] + rm_args rm_cmd_line_str = " ".join(rm_cmd_line) # We use `shell=True` so that any wildcard globs get expanded by the shell.