From 1db1c19cc03ac0f41f983549ec8a70128bb1dc1c Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Mon, 30 Dec 2019 13:22:20 -0600 Subject: [PATCH] write_sparsely bitmatch set_linux_file_attr: accommodate python 3 Signed-off-by: Rob Browning Tested-by: Rob Browning --- lib/bup/_helpers.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index f0abda3..b29c54c 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -497,7 +497,7 @@ static PyObject *bup_write_sparsely(PyObject *self, PyObject *args) unsigned char *buf = NULL; Py_ssize_t sbuf_len; PyObject *py_min_sparse_len, *py_prev_sparse_len; - if (!PyArg_ParseTuple(args, "it#OO", + if (!PyArg_ParseTuple(args, "i" rbuf_argf "OO", &fd, &buf, &sbuf_len, &py_min_sparse_len, &py_prev_sparse_len)) return NULL; @@ -615,7 +615,7 @@ static PyObject *bitmatch(PyObject *self, PyObject *args) Py_ssize_t byte; int bit; - if (!PyArg_ParseTuple(args, "t#t#", &buf1, &len1, &buf2, &len2)) + if (!PyArg_ParseTuple(args, rbuf_argf rbuf_argf, &buf1, &len1, &buf2, &len2)) return NULL; bit = 0; -- 2.39.2