From 0709877b4e145ea2fe40974cc9c17b51bec3924d Mon Sep 17 00:00:00 2001 From: Ronnie Dutta <61982285+MetRonnie@users.noreply.github.com> Date: Tue, 25 Feb 2025 16:59:36 +0000 Subject: [PATCH] Remove `pipes` usage (#2861) Removed from std lib at Python 3.13 --- metomi/rose/apps/fcm_make.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/metomi/rose/apps/fcm_make.py b/metomi/rose/apps/fcm_make.py index e28109a898..6f0515e5c5 100644 --- a/metomi/rose/apps/fcm_make.py +++ b/metomi/rose/apps/fcm_make.py @@ -18,7 +18,6 @@ from contextlib import suppress import os -from pipes import quote import shlex import sys from tempfile import mkdtemp @@ -135,7 +134,7 @@ def _invoke_fcm_make( "! test -e %(name)s/%(uuid)s && " + "(ls -d %(name)s || true) && rm -fr %(name)s" ) - % {"name": quote(name), "uuid": uuid}, + % {"name": shlex.quote(name), "uuid": uuid}, ) out = app_runner.popen.run_ok(*cmd)[0] for line in out.splitlines():