Remove import fallback for collections.abc (#8674)

This commit is contained in:
Mads Jensen 2021-02-21 23:23:42 +01:00 committed by GitHub
parent c0eccdd358
commit ef265eccaf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 13 deletions

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:"

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 = [