]> arthur.barton.de Git - bup.git/commit
io: fix path_msg on python2
authorJohannes Berg <johannes@sipsolutions.net>
Thu, 27 Aug 2020 20:25:16 +0000 (22:25 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sat, 29 Aug 2020 23:56:07 +0000 (18:56 -0500)
commiteff166ca3ad17288b3114cc3c636c7b3d96ad155
tree684c379fb83449bb14b4263cb136cb6ace982efd
parent63046f3d626c8be08c5f471e130bba7dbcef1081
io: fix path_msg on python2

We get the binary representation here on both python 2 and 3,
but on 2 we really don't need to do any decoding since we must
print it as 'str'. Decoding also fails if the input is valid
UTF-8, which seems strange, but even if it worked we actually
don't want unicode objects here to print, we'd have to encode
them again to print.

Reported-by: Henninger Henningstone <henningstone@gmx.de>
Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/io.py