From 6b9c7f78d266fc8b71727f637b44af1b5991a498 Mon Sep 17 00:00:00 2001 From: Tilman Vogel Date: Fri, 27 Jun 2025 19:21:31 +0200 Subject: [PATCH] Replace pipes.quote() with shlex.quote() ... as pipes was removed in Python 3.13. --- executor/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/executor/__init__.py b/executor/__init__.py index dbe2eb7..cf3d304 100644 --- a/executor/__init__.py +++ b/executor/__init__.py @@ -44,7 +44,6 @@ import errno import logging import os -import pipes import pprint import shlex import signal @@ -1986,7 +1985,7 @@ def quote(*args): """ Quote a string or a sequence of strings to be used as command line argument(s). - This function is a simple wrapper around :func:`pipes.quote()` which + This function is a simple wrapper around :func:`shlex.quote()` which adds support for quoting sequences of strings (lists and tuples). For example the following calls are all equivalent:: @@ -2006,7 +2005,7 @@ def quote(*args): else: value = args[0] if not isinstance(value, (list, tuple)): - return pipes.quote(value) + return shlex.quote(value) return ' '.join(map(quote, value))