Skip to content

Commit

Permalink
Deprecate pipes module
Browse files Browse the repository at this point in the history
`pipes` was deprecated since version 3.11 so let's drop the use
accordingly.

Issue: avocado-framework#3837

Signed-off-by: Xu Han <[email protected]>
  • Loading branch information
luckyh committed Feb 1, 2024
1 parent 85258d3 commit ddc15ca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions avocado_vt/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import os
import sys
import pipes
import shlex

from avocado.core import exceptions
from avocado.core import test
Expand Down Expand Up @@ -173,8 +173,8 @@ def setUp(self):
archive = os.path.join(os.path.dirname(
libvirtd_log), "libvirtd.tar.gz")
cmd = ("tar -zcf %s -P %s"
% (pipes.quote(archive),
pipes.quote(libvirtd_log)))
% (shlex.quote(archive),
shlex.quote(libvirtd_log)))
if process.system(cmd) == 0:
os.remove(libvirtd_log)
else:
Expand Down

0 comments on commit ddc15ca

Please sign in to comment.