From 9431adc67bd3db71557119951a7b3e2daeb279c0 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Mon, 30 Dec 2019 13:22:20 -0600 Subject: [PATCH] set_linux_file_attr: accommodate python 3 Signed-off-by: Rob Browning Tested-by: Rob Browning --- lib/bup/_helpers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/bup/_helpers.c b/lib/bup/_helpers.c index 97e4e83..f0abda3 100644 --- a/lib/bup/_helpers.c +++ b/lib/bup/_helpers.c @@ -1286,7 +1286,7 @@ static PyObject *bup_set_linux_file_attr(PyObject *self, PyObject *args) PyObject *py_attr; int fd; - if (!PyArg_ParseTuple(args, "sO", &path, &py_attr)) + if (!PyArg_ParseTuple(args, cstr_argf "O", &path, &py_attr)) return NULL; if (!bup_uint_from_py(&attr, py_attr, "attr")) -- 2.39.2