]> git.ipfire.org Git - pakfire.git/commitdiff
python: Rename File.digest() to File.checksum()
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 11:00:53 +0000 (11:00 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 6 Feb 2025 11:00:53 +0000 (11:00 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/python/file.c

index 95d6e5744bbe7f20ebfa94702a67d41b0c7cb22c..7c5e9cbece3a19c418083d3e7ebfe5b9f2650daf 100644 (file)
@@ -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,
        },