]> arthur.barton.de Git - bup.git/commit
cmd/bup: adapt for python 3
authorRob Browning <rlb@defaultvalue.org>
Thu, 26 Dec 2019 18:50:47 +0000 (12:50 -0600)
committerRob Browning <rlb@defaultvalue.org>
Fri, 17 Jan 2020 18:54:13 +0000 (12:54 -0600)
commite28cbabdf7b2f3a9b3c4a5d1c8a725f58f98d2d6
tree8e06910b7b18d309fcb34df702e1ce1d1c75e629
parent4f7e4dfcdc5b12efb809a2cafcfff6fbd7e569a0
cmd/bup: adapt for python 3

Make all the changes necessary for cmd/bup to work with both python 2
and 3.  Given the current state, the majority of the changes handle
untangling the python 3 unicode/data conflation.

Convert to b'x' literals where needed (e.g. for path or path-derived
values), use argv_bytes to convert at least the command line values
that must not be interpreted as locale strings, and switch to the
bytes-only compat.environ.

More broadly speaking, aside from the changes we abosolutely have to
make, the general intent is for us to handle locale-specific
conversions carefully and explicitly when appropriate, not
transparently.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/bup