mirror of
https://github.com/certbot/certbot.git
synced 2026-06-07 07:42:08 -04:00
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).
This commit is contained in:
parent
abe23c0e60
commit
bb2db252a7
1 changed files with 3 additions and 2 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue