Python 3.13: do not use removed module "pipes"
This module has been removed in Python 3.13. There is no change in functionality: $ python3 Python 3.12.4 (main, Jun 12 2024, 19:06:53) [GCC 13.2.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import shlex, pipes <stdin>:1: DeprecationWarning: 'pipes' is deprecated and slated for removal in Python 3.13 >>> shlex.quote == pipes.quote True Change-Id: Ia4325a1c159812ed7879066e2803fbc68bb26665
This commit is contained in:
parent
be156e279e
commit
3474dd5074
@ -15,8 +15,8 @@
|
|||||||
|
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
import pipes
|
|
||||||
import platform
|
import platform
|
||||||
|
import shlex
|
||||||
import sys
|
import sys
|
||||||
import tempfile
|
import tempfile
|
||||||
import time
|
import time
|
||||||
@ -186,7 +186,7 @@ class RootwrapTest(testctx.TestContextTestCase):
|
|||||||
cmd.append('--debug')
|
cmd.append('--debug')
|
||||||
|
|
||||||
self.privsep_conf.set_override(
|
self.privsep_conf.set_override(
|
||||||
'helper_command', ' '.join(map(pipes.quote, cmd)),
|
'helper_command', ' '.join(map(shlex.quote, cmd)),
|
||||||
group=testctx.context.cfg_section)
|
group=testctx.context.cfg_section)
|
||||||
|
|
||||||
testctx.context.start(method=priv_context.Method.ROOTWRAP)
|
testctx.context.start(method=priv_context.Method.ROOTWRAP)
|
||||||
|
Loading…
Reference in New Issue
Block a user