From b7dea9ddcdd45db74b40b2eabce2349942a2284a Mon Sep 17 00:00:00 2001 From: lethliel Date: Tue, 16 Apr 2019 14:57:19 +0200 Subject: [PATCH] [python3] return value when adding attrs is bytes When adding attribute with osc meta attribute -a -s '' the api call gets executed successfull but the return value needs to be decoded to print it correctly. --- osc/commandline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc/commandline.py b/osc/commandline.py index 89d23dac..6463ab71 100644 --- a/osc/commandline.py +++ b/osc/commandline.py @@ -1032,7 +1032,7 @@ class Osc(cmdln.Cmdln): d = '%s' % (aname[0], aname[1], values) url = makeurl(apiurl, attributepath) for data in streamfile(url, http_POST, data=d): - sys.stdout.write(data) + sys.stdout.write(decode_it(data)) # upload file if opts.file: