From 7d01d0da2850eca667b75efca16c7d3a70acdc06 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 1 Oct 2022 13:20:09 +0000 Subject: [PATCH] _pakfire: Drop constants for digest types Signed-off-by: Michael Tremer --- src/_pakfire/_pakfiremodule.c | 6 ------ src/pakfire/constants.py | 6 ------ 2 files changed, 12 deletions(-) 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/" -- 2.47.3