From bb2db252a7de77af8f1410ea48548c228baaf10b Mon Sep 17 00:00:00 2001 From: alexzorin Date: Wed, 29 Sep 2021 03:48:50 +1000 Subject: [PATCH] stop using deprecated jose abstractclassmethod (#9045) The josepy 1.10.0 release deprecated this decorator and [caused the nightly `nopin` test to break](https://dev.azure.com/certbot/certbot/_build/results?buildId=4548&view=logs&j=ce03f7c1-1e3f-5d55-28be-f084e7c62a50&t=597fea95-d44e-53a2-5b71-76ed20bd4dde). --- certbot/certbot/plugins/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/certbot/certbot/plugins/common.py b/certbot/certbot/plugins/common.py index 635c8841c..2a73c310a 100644 --- a/certbot/certbot/plugins/common.py +++ b/certbot/certbot/plugins/common.py @@ -1,12 +1,12 @@ """Plugin common functions.""" from abc import ABCMeta +from abc import abstractmethod import logging import re import shutil import tempfile from typing import List -from josepy import util as jose_util import pkg_resources from certbot import achallenges @@ -48,7 +48,8 @@ class Plugin(AbstractPlugin, metaclass=ABCMeta): self.config = config self.name = name - @jose_util.abstractclassmethod + @classmethod + @abstractmethod def add_parser_arguments(cls, add): """Add plugin arguments to the CLI argument parser.