Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/acme
diff options
context:
space:
mode:
authorMads Jensen <mads.jensen@eficode.com>2021-02-26 01:59:00 +0300
committerGitHub <noreply@github.com>2021-02-26 01:59:00 +0300
commit67c2b27af7d7dc04c246be4f9a1d4cd29a3099ca (patch)
tree68109ce37b830ce348f18c89804b9b407e8e9733 /acme
parent135187f03e18eebcb32b05c4ecb76a4552aed883 (diff)
Stop inheriting from object. It's unneeded on Python 3+. (#8675)
Diffstat (limited to 'acme')
-rw-r--r--acme/acme/client.py6
-rw-r--r--acme/acme/crypto_util.py6
-rw-r--r--acme/acme/magic_typing.py2
-rw-r--r--acme/acme/messages.py2
-rw-r--r--acme/acme/mixins.py2
-rw-r--r--acme/acme/standalone.py2
6 files changed, 10 insertions, 10 deletions
diff --git a/acme/acme/client.py b/acme/acme/client.py
index c3f8c550f..33e515124 100644
--- a/acme/acme/client.py
+++ b/acme/acme/client.py
@@ -33,7 +33,7 @@ DEFAULT_NETWORK_TIMEOUT = 45
DER_CONTENT_TYPE = 'application/pkix-cert'
-class ClientBase(object):
+class ClientBase:
"""ACME client base object.
:ivar messages.Directory directory:
@@ -795,7 +795,7 @@ class ClientV2(ClientBase):
if 'rel' in l and 'url' in l and l['rel'] == relation_type]
-class BackwardsCompatibleClientV2(object):
+class BackwardsCompatibleClientV2:
"""ACME client wrapper that tends towards V2-style calls, but
supports V1 servers.
@@ -938,7 +938,7 @@ class BackwardsCompatibleClientV2(object):
return self.client.external_account_required()
-class ClientNetwork(object):
+class ClientNetwork:
"""Wrapper around requests that signs POSTs for authentication.
Also adds user agent, and handles Content-Type.
diff --git a/acme/acme/crypto_util.py b/acme/acme/crypto_util.py
index 4b58db328..a14737053 100644
--- a/acme/acme/crypto_util.py
+++ b/acme/acme/crypto_util.py
@@ -27,7 +27,7 @@ logger = logging.getLogger(__name__)
_DEFAULT_SSL_METHOD = SSL.SSLv23_METHOD # type: ignore
-class _DefaultCertSelection(object):
+class _DefaultCertSelection:
def __init__(self, certs):
self.certs = certs
@@ -36,7 +36,7 @@ class _DefaultCertSelection(object):
return self.certs.get(server_name, None)
-class SSLSocket(object): # pylint: disable=too-few-public-methods
+class SSLSocket: # pylint: disable=too-few-public-methods
"""SSL wrapper for sockets.
:ivar socket sock: Original wrapped socket.
@@ -93,7 +93,7 @@ class SSLSocket(object): # pylint: disable=too-few-public-methods
new_context.set_alpn_select_callback(self.alpn_selection)
connection.set_context(new_context)
- class FakeConnection(object):
+ class FakeConnection:
"""Fake OpenSSL.SSL.Connection."""
# pylint: disable=missing-function-docstring
diff --git a/acme/acme/magic_typing.py b/acme/acme/magic_typing.py
index 388fc4a58..0e60d3203 100644
--- a/acme/acme/magic_typing.py
+++ b/acme/acme/magic_typing.py
@@ -2,7 +2,7 @@
import sys
-class TypingClass(object):
+class TypingClass:
"""Ignore import errors by getting anything"""
def __getattr__(self, name):
return None
diff --git a/acme/acme/messages.py b/acme/acme/messages.py
index 61fd89dfd..0d73037ae 100644
--- a/acme/acme/messages.py
+++ b/acme/acme/messages.py
@@ -274,7 +274,7 @@ class ResourceBody(jose.JSONObjectWithFields):
"""ACME Resource Body."""
-class ExternalAccountBinding(object):
+class ExternalAccountBinding:
"""ACME External Account Binding"""
@classmethod
diff --git a/acme/acme/mixins.py b/acme/acme/mixins.py
index 1cd050ccc..0e1e0977c 100644
--- a/acme/acme/mixins.py
+++ b/acme/acme/mixins.py
@@ -1,7 +1,7 @@
"""Useful mixins for Challenge and Resource objects"""
-class VersionedLEACMEMixin(object):
+class VersionedLEACMEMixin:
"""This mixin stores the version of Let's Encrypt's endpoint being used."""
@property
def le_acme_version(self):
diff --git a/acme/acme/standalone.py b/acme/acme/standalone.py
index 94397f0de..f5bc548b6 100644
--- a/acme/acme/standalone.py
+++ b/acme/acme/standalone.py
@@ -53,7 +53,7 @@ class ACMEServerMixin:
allow_reuse_address = True
-class BaseDualNetworkedServers(object):
+class BaseDualNetworkedServers:
"""Base class for a pair of IPv6 and IPv4 servers that tries to do everything
it's asked for both servers, but where failures in one server don't
affect the other.