]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/_helpers.c
Adjust memtest and random_sha for python 3 and enable test.sh
[bup.git] / lib / bup / _helpers.c
index d325578fcace65d16bf554d53b0b682c2ce95ea1..312ecd4528a1376c7e9ced35e7fe33336b633628 100644 (file)
@@ -1164,7 +1164,7 @@ static PyObject *random_sha(PyObject *self, PyObject *args)
     memset(shabuf, 0, sizeof(shabuf));
     for (i=0; i < 20/4; i++)
        shabuf[i] = random();
-    return Py_BuildValue("s#", shabuf, 20);
+    return Py_BuildValue(rbuf_argf, shabuf, 20);
 }