mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Remove import fallback for collections.abc (#8674)
This commit is contained in:
parent
c0eccdd358
commit
ef265eccaf
2 changed files with 2 additions and 13 deletions
|
|
@ -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:"
|
||||
|
||||
|
|
|
|||
|
|
@ -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 = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue