]> git.ipfire.org Git - pakfire.git/commitdiff
_pakfire: Drop constants for digest types
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Oct 2022 13:20:09 +0000 (13:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 1 Oct 2022 13:20:09 +0000 (13:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/_pakfire/_pakfiremodule.c
src/pakfire/constants.py

index da78553e7a6640972727814bf0ff42c8922553cf..6fadebaec4b71e85713a1dee0699afcaa455b4b1 100644 (file)
@@ -113,12 +113,6 @@ PyMODINIT_FUNC PyInit__pakfire(void) {
                goto ERROR;
        }
 
-       // Add digest constants
-       if (PyModule_AddIntMacro(module, PAKFIRE_DIGEST_SHA2_512))
-               return NULL;
-       if (PyModule_AddIntMacro(module, PAKFIRE_DIGEST_SHA2_256))
-               return NULL;
-
        // Pakfire
        if (PyType_Ready(&PakfireType) < 0)
                return NULL;
index b0c462cb3847423f95185af5cefd103cb3efce5b..7ec637ea08f7e07e1dc372e50ff8b356d384e226 100644 (file)
@@ -25,12 +25,6 @@ from .errors import *
 
 from .__version__ import PAKFIRE_VERSION
 
-# Fetch digest constants
-from ._pakfire import (
-       PAKFIRE_DIGEST_SHA2_512,
-       PAKFIRE_DIGEST_SHA2_256,
-)
-
 # The default hub to connect to.
 PAKFIRE_HUB = "https://pakfirehub.ipfire.org/"