From: Michael Tremer Date: Sat, 1 Oct 2022 13:20:09 +0000 (+0000) Subject: _pakfire: Drop constants for digest types X-Git-Tag: 0.9.28~286 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7d01d0da2850eca667b75efca16c7d3a70acdc06;p=pakfire.git _pakfire: Drop constants for digest types Signed-off-by: Michael Tremer --- diff --git a/src/_pakfire/_pakfiremodule.c b/src/_pakfire/_pakfiremodule.c index da78553e7..6fadebaec 100644 --- a/src/_pakfire/_pakfiremodule.c +++ b/src/_pakfire/_pakfiremodule.c @@ -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; diff --git a/src/pakfire/constants.py b/src/pakfire/constants.py index b0c462cb3..7ec637ea0 100644 --- a/src/pakfire/constants.py +++ b/src/pakfire/constants.py @@ -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/"