]> 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:01:20 +0000 (18:01 +0000)
commit52654da17967a930a3cac962fc654e0d5de2855b
tree157142ec149d6183c2e506bd336e96e4741849e7
parent53fe8b16431833b7bff6271c41ca8b79b0a7701e
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>
patchwork/bin/pwclient