1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-31 10:11:17 +00:00

wa: Remove reference to devlibs escaping methods

As part of https://github.com/ARM-software/devlib/pull/339 the escaping
method are being removed in favour of using `quote` from `pipes` so
also make reflecting changes here.
This commit is contained in:
Marc Bonnici 2018-11-15 15:17:27 +00:00
parent 285bc2cd0b
commit bb282eb19c
2 changed files with 2 additions and 4 deletions

View File

@ -20,6 +20,7 @@
import sys import sys
from subprocess import call, Popen, PIPE from subprocess import call, Popen, PIPE
from pipes import quote
from wa import Command from wa import Command
from wa.framework import pluginloader from wa.framework import pluginloader
@ -31,8 +32,6 @@ from wa.utils.doc import (strip_inlined_text, get_rst_from_plugin,
get_params_rst, underline) get_params_rst, underline)
from wa.utils.misc import which from wa.utils.misc import which
from devlib.utils.misc import escape_double_quotes
class ShowCommand(Command): class ShowCommand(Command):
@ -87,7 +86,7 @@ class ShowCommand(Command):
title = '.TH {}{} 7'.format(kind, plugin_name) title = '.TH {}{} 7'.format(kind, plugin_name)
output = '\n'.join([title, body]) output = '\n'.join([title, body])
call('echo "{}" | man -l -'.format(escape_double_quotes(output)), shell=True) call('echo {} | man -l -'.format(quote(output)), shell=True)
else: else:
print(rst_output) # pylint: disable=superfluous-parens print(rst_output) # pylint: disable=superfluous-parens

View File

@ -49,7 +49,6 @@ from devlib.exception import TargetError
from devlib.utils.misc import (ABI_MAP, check_output, walk_modules, from devlib.utils.misc import (ABI_MAP, check_output, walk_modules,
ensure_directory_exists, ensure_file_directory_exists, ensure_directory_exists, ensure_file_directory_exists,
normalize, convert_new_lines, get_cpu_mask, unique, normalize, convert_new_lines, get_cpu_mask, unique,
escape_quotes, escape_single_quotes, escape_double_quotes,
isiterable, getch, as_relative, ranges_to_list, memoized, isiterable, getch, as_relative, ranges_to_list, memoized,
list_to_ranges, list_to_mask, mask_to_list, which, list_to_ranges, list_to_mask, mask_to_list, which,
to_identifier) to_identifier)