]> arthur.barton.de Git - bup.git/commitdiff
set_linux_file_attr: accommodate python 3
authorRob Browning <rlb@defaultvalue.org>
Mon, 30 Dec 2019 19:22:20 +0000 (13:22 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 2 Feb 2020 18:14:35 +0000 (12:14 -0600)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/_helpers.c

index 97e4e833d2ea6c44194085343203c0ae6b549092..f0abda3b5bfc71476326645840a07b5ccbc5de88 100644 (file)
@@ -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"))