aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Bonnici <marc.bonnici@arm.com>2018-12-17 11:06:37 +0000
committerMarc Bonnici <marc.bonnici@arm.com>2018-12-21 14:05:14 +0000
commitb93beb3f1f07047c554c3477c610a5fedc19fa03 (patch)
treef51544bdad965bd956dde22c3d4f5bb38ac8bbf4
parentca0d2eaaf5168c9f68715af0d4d10c2a862cc10c (diff)
commands/show: Revert quoting method switch
In commit bb282eb19c48b5770186d136e8a40c0573ef59b9 devlibs `escape_double_quotes` method was retired in favour of the `pipes.quote` method however this does not format correctly for this purpose therefore revert back to the original escaping method.
-rw-r--r--wa/commands/show.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/wa/commands/show.py b/wa/commands/show.py
index 3d673358..45531a4c 100644
--- a/wa/commands/show.py
+++ b/wa/commands/show.py
@@ -20,7 +20,8 @@
import sys
from subprocess import call, Popen, PIPE
-from pipes import quote
+
+from devlib.utils.misc import escape_double_quotes
from wa import Command
from wa.framework import pluginloader
@@ -86,7 +87,7 @@ class ShowCommand(Command):
title = '.TH {}{} 7'.format(kind, plugin_name)
output = '\n'.join([title, body])
- call('echo {} | man -l -'.format(quote(output)), shell=True)
+ call('echo "{}" | man -l -'.format(escape_double_quotes(output)), shell=True)
else:
print(rst_output) # pylint: disable=superfluous-parens