]> arthur.barton.de Git - bup.git/commit
save: make the py3 save commit message args match py2
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 4 Aug 2020 14:46:16 +0000 (16:46 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sat, 8 Aug 2020 17:11:25 +0000 (12:11 -0500)
commite03bee7f751e0a092509200502e0f37316458536
tree69fc41943a7bd58261a7e77c0750c432f45560bb
parentf6abe5795cc39e316c7198666cc65d53b582296f
save: make the py3 save commit message args match py2

We shouldn't use sys.argv, it's missing the actual arguments
now. Also, encode it but drop the "b" on the bytes (if present,
i.e. python3) to make this look the same as on python2.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
[rlb@defaultvalue.org: make formatting decision via py_maj; adjust
 commit message]
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/cmd/save-cmd.py