Skip to content

Commit

Permalink
Remove pipes usage (#2861)
Browse files Browse the repository at this point in the history
Removed from std lib at Python 3.13
  • Loading branch information
MetRonnie authored Feb 25, 2025
1 parent 4b49a2d commit 0709877
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions metomi/rose/apps/fcm_make.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from contextlib import suppress
import os
from pipes import quote
import shlex
import sys
from tempfile import mkdtemp
Expand Down Expand Up @@ -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():
Expand Down

0 comments on commit 0709877

Please sign in to comment.