]> git.ipfire.org Git - thirdparty/patchwork.git/commit
pwclient: Fix Python 3 encoding of received strings
authorThomas Monjalon <thomas.monjalon@6wind.com>
Tue, 13 Dec 2016 10:37:47 +0000 (11:37 +0100)
committerStephen Finucane <stephen@that.guru>
Tue, 13 Dec 2016 18:07:11 +0000 (18:07 +0000)
commitcfe8b7b1159aaec950a765abd4165fcae9aa83d9
tree78f10e1683cc73661cbb386bc532294c79a01934
parent0d0d5c5d13c2b98741f55c8b99f561572d2dc037
pwclient: Fix Python 3 encoding of received strings

The conversion encode("utf-8") makes a byte stream which is
poorly printed with Python 3.
However this encoding is required for Popen.communicate() but must be
done after str.join() which applies to a real string.

Signed-off-by: Thomas Monjalon <thomas.monjalon@6wind.com>
Reviewed-by: Stephen Finucane <stephen@that.guru>
(cherry picked from commit 52654da17967a930a3cac962fc654e0d5de2855b)

Conflicts:
patchwork/bin/pwclient
patchwork/bin/pwclient