From: Michael Tremer Date: Thu, 6 Feb 2025 11:00:53 +0000 (+0000) Subject: python: Rename File.digest() to File.checksum() X-Git-Tag: 0.9.30~118 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f960f92c21e53a134764c096f6855d4a0badb856;p=pakfire.git python: Rename File.digest() to File.checksum() Signed-off-by: Michael Tremer --- diff --git a/src/python/file.c b/src/python/file.c index 95d6e574..7c5e9cbe 100644 --- a/src/python/file.c +++ b/src/python/file.c @@ -106,7 +106,7 @@ static PyObject* File_get_mtime(FileObject* self) { return PyDateTime_FromTime_t(&t); } -static PyObject* File_digest(FileObject* self, PyObject* args) { +static PyObject* File_checksum(FileObject* self, PyObject* args) { const unsigned char* checksum = NULL; size_t length = 0; int r; @@ -168,8 +168,8 @@ ERROR: static struct PyMethodDef File_methods[] = { { - "digest", - (PyCFunction)File_digest, + "checksum", + (PyCFunction)File_checksum, METH_VARARGS, NULL, },