summaryrefslogtreecommitdiffstats
path: root/scripts/lib
diff options
context:
space:
mode:
authorHumberto Ibarra <humberto.ibarra.lopez@intel.com>2016-07-02 13:17:56 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-07-07 13:38:13 +0100
commit71bc7fd8ce9ba4db13ca82f56ff7d8ab8b2a279f (patch)
tree03f054cf9af6e0f2b7f579c160db4cf47ba1041d /scripts/lib
parent21282724d839d964b50fe640be1b707f7b421933 (diff)
downloadpoky-71bc7fd8ce9ba4db13ca82f56ff7d8ab8b2a279f.tar.gz
scripts/lib/bsp/help.py: Fixed pager for yocto-bsp help
Python3 requires strings to be encoded as bytes before sending them through a subprocess pipe. The help.py file is not considering this and fails when issuing paged help commands. This patch adds this encoding to solve the problem. [YOCTO #9868] (From meta-yocto rev: 35b487a47f0cbb99fdee2ec9cc8b56b814c8860e) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/lib')
-rw-r--r--scripts/lib/bsp/help.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/bsp/help.py b/scripts/lib/bsp/help.py
index 85a09dd29b..311c5e4189 100644
--- a/scripts/lib/bsp/help.py
+++ b/scripts/lib/bsp/help.py
@@ -42,7 +42,7 @@ def display_help(subcommand, subcommands):
42 42
43 help = subcommands.get(subcommand, subcommand_error)[2] 43 help = subcommands.get(subcommand, subcommand_error)[2]
44 pager = subprocess.Popen('less', stdin=subprocess.PIPE) 44 pager = subprocess.Popen('less', stdin=subprocess.PIPE)
45 pager.communicate(help) 45 pager.communicate(bytes(help, 'UTF-8'))
46 46
47 return True 47 return True
48 48