Remove import fallback for collections.abc (#8674)

This commit is contained in:
Mads Jensen
2021-02-22 09:23:42 +11:00
committed by GitHub
parent c0eccdd358
commit ef265eccaf
2 changed files with 2 additions and 13 deletions
+1 -7
View File
@@ -1,5 +1,6 @@
"""ACME protocol messages."""
import json
from collections.abc import Hashable
import josepy as jose
@@ -10,13 +11,6 @@ from acme import jws
from acme import util
from acme.mixins import ResourceMixin
try:
from collections.abc import Hashable
except ImportError: # pragma: no cover
from collections import Hashable
OLD_ERROR_PREFIX = "urn:acme:error:"
ERROR_PREFIX = "urn:ietf:params:acme:error:"
+1 -6
View File
@@ -3,6 +3,7 @@ import collections
import itertools
import logging
import sys
from collections.abc import Mapping
import pkg_resources
import zope.interface
@@ -14,12 +15,6 @@ from certbot import interfaces
from certbot._internal import constants
from certbot.compat import os
try:
# Python 3.3+
from collections.abc import Mapping
except ImportError: # pragma: no cover
from collections import Mapping
logger = logging.getLogger(__name__)
PREFIX_FREE_DISTRIBUTIONS = [