From a62668c923acd458c9381f915fe834a3bababe92 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Tue, 29 Aug 2023 09:03:16 -0700 Subject: [PATCH] urlgrabber code has been commented out for 9 years. remove it Signed-off-by: Troy Dawson --- src/centpkg/centos_cert.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/centpkg/centos_cert.py b/src/centpkg/centos_cert.py index 9c467a3..f76f5bd 100644 --- a/src/centpkg/centos_cert.py +++ b/src/centpkg/centos_cert.py @@ -2,7 +2,6 @@ from __future__ import print_function import os from cryptography import x509 -import urlgrabber import datetime # This file was modified from the fedora_cert section in fedora-packager written @@ -39,8 +38,6 @@ def verify_cert(): Expiry time warn if less than 21 days """ my_cert = _open_cert() - # CRL verification would go here - #crl = urlgrabber.urlread("https:///ca/crl.pem") warn = datetime.datetime.now() + datetime.timedelta(days=21) print(my_cert.not_valid_after.strftime('cert expires: %Y-%m-%d'))