From 5c7c12afa53615e0e9027ab9105699827ba65ef2 Mon Sep 17 00:00:00 2001 From: Brad Warren Date: Mon, 1 Nov 2021 10:11:04 -0700 Subject: [PATCH] switch to pkg_resources --- certbot/certbot/_internal/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/certbot/certbot/_internal/storage.py b/certbot/certbot/_internal/storage.py index d69dd6a00..d1dadae61 100644 --- a/certbot/certbot/_internal/storage.py +++ b/certbot/certbot/_internal/storage.py @@ -33,7 +33,7 @@ logger = logging.getLogger(__name__) ALL_FOUR = ("cert", "privkey", "chain", "fullchain") README = "README" -CURRENT_VERSION = util.get_strict_version(certbot.__version__) +CURRENT_VERSION = pkg_resources.parse_version(certbot.__version__) BASE_PRIVKEY_MODE = 0o600 @@ -457,7 +457,7 @@ class RenewableCert(interfaces.RenewableCert): conf_version = self.configuration.get("version") if (conf_version is not None and - util.get_strict_version(conf_version) > CURRENT_VERSION): + pkg_resources.parse_version(conf_version) > CURRENT_VERSION): logger.info( "Attempting to parse the version %s renewal configuration " "file found at %s with version %s of Certbot. This might not "