Stop using deprecated pipes.quote
Instead use the definition from python-six. Once we drop Py 2 support completely, we'll just swap underscores with dots. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
797b13b34a
commit
f3806f7c77
12 changed files with 52 additions and 56 deletions
|
|
@ -11,7 +11,7 @@ import locale
|
|||
import datetime
|
||||
import getpass
|
||||
import socket
|
||||
import pipes
|
||||
from six.moves import shlex_quote
|
||||
import json
|
||||
|
||||
here = sys.path[0]
|
||||
|
|
@ -266,7 +266,7 @@ def run_compose(compose, create_latest_link=True, latest_link_status=None):
|
|||
compose.log_info("Pungi version: %s" % get_full_version())
|
||||
compose.log_info("User name: %s" % getpass.getuser())
|
||||
compose.log_info("Working directory: %s" % os.getcwd())
|
||||
compose.log_info("Command line: %s" % " ".join([pipes.quote(arg) for arg in sys.argv]))
|
||||
compose.log_info("Command line: %s" % " ".join([shlex_quote(arg) for arg in sys.argv]))
|
||||
compose.log_info("Compose top directory: %s" % compose.topdir)
|
||||
compose.log_info("Current timezone offset: %s" % pungi.util.get_tz_offset())
|
||||
compose.read_variants()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue