]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/_helpers.c
set_linux_file_attr: accommodate python 3
[bup.git] / 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"))