]> arthur.barton.de Git - bup.git/commit
bup_stat bup_lstat: always treat path as binary
authorRob Browning <rlb@defaultvalue.org>
Tue, 10 Sep 2019 06:09:09 +0000 (01:09 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sun, 29 Sep 2019 20:25:18 +0000 (15:25 -0500)
commita67c04f3666d92a66f4a4c5e0b4788fe4949cd22
treece60a995426617a2a5c05e88e602453a07e021ea
parent7199c5281bff2133bb943714bc44bcc006d9e3e6
bup_stat bup_lstat: always treat path as binary

Convert the path via "y" in Python 3, and rename the format alias to
cstr_argf to more accurately reflect what it means, i.e. a sequence of
non-null bytes.  If "y" ends up being sufficient it's simpler (and
more efficient?) than a Py_buffer conversion, though it doesn't
support as many argument types.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/_helpers.c