summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-02-26 10:01:29 +0100
committerThorbjørn Lindeijer <bjorn@lindeijer.nl>2025-02-26 10:01:33 +0100
commit88dfbd91ed22ab4ad98b2b9f0243f9d9faa9b49d (patch)
tree1f22af7cf0039ac80e032edad8876ae0e348867c
parent2d32c37a5639d76f34f83d3a929677efa46962a5 (diff)
downloadtmwa-88dfbd91ed22ab4ad98b2b9f0243f9d9faa9b49d.tar.gz
tmwa-88dfbd91ed22ab4ad98b2b9f0243f9d9faa9b49d.tar.bz2
tmwa-88dfbd91ed22ab4ad98b2b9f0243f9d9faa9b49d.tar.xz
tmwa-88dfbd91ed22ab4ad98b2b9f0243f9d9faa9b49d.zip
tools/protocol.py: Avoid usage of deprecated pipes.quoteHEADmaster
The deprecated `pipes.quote` was removed in Python 3.13. Fortunately, the same functionality has been available as `shlex.quote` since Python 3.3.
-rwxr-xr-xtools/protocol.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/protocol.py b/tools/protocol.py
index c4c8657..d278884 100755
--- a/tools/protocol.py
+++ b/tools/protocol.py
@@ -21,9 +21,8 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
import glob
-import itertools
import os
-from pipes import quote
+from shlex import quote
from posixpath import relpath
from weakref import ref as wr