correct metaclass usage everywhere (#5919)

This commit is contained in:
Brad Warren
2018-05-03 10:59:25 +03:00
committed by Joona Hoikkala
parent 95c0c4a708
commit 32e85e9a23
2 changed files with 3 additions and 3 deletions
+2 -1
View File
@@ -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 = (
+1 -2
View File
@@ -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.