mirror of
https://github.com/certbot/certbot.git
synced 2026-07-27 08:09:10 +02:00
correct metaclass usage everywhere (#5919)
This commit is contained in:
committed by
Joona Hoikkala
parent
95c0c4a708
commit
32e85e9a23
@@ -9,6 +9,7 @@ from cryptography.hazmat.primitives import hashes # type: ignore
|
||||
import josepy as jose
|
||||
import OpenSSL
|
||||
import requests
|
||||
import six
|
||||
|
||||
from acme import errors
|
||||
from acme import crypto_util
|
||||
@@ -139,6 +140,7 @@ class KeyAuthorizationChallengeResponse(ChallengeResponse):
|
||||
return True
|
||||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class KeyAuthorizationChallenge(_TokenChallenge):
|
||||
# pylint: disable=abstract-class-little-used,too-many-ancestors
|
||||
"""Challenge based on Key Authorization.
|
||||
@@ -147,7 +149,6 @@ class KeyAuthorizationChallenge(_TokenChallenge):
|
||||
that will be used to generate `response`.
|
||||
|
||||
"""
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
response_cls = NotImplemented
|
||||
thumbprint_hash_function = (
|
||||
|
||||
@@ -7,11 +7,10 @@ import zope.interface
|
||||
# pylint: disable=too-few-public-methods
|
||||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class AccountStorage(object):
|
||||
"""Accounts storage interface."""
|
||||
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
@abc.abstractmethod
|
||||
def find_all(self): # pragma: no cover
|
||||
"""Find all accounts.
|
||||
|
||||
Reference in New Issue
Block a user