mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-07 13:53:06 +00:00
Re-sort imports.
This commit is contained in:
@@ -16,7 +16,6 @@ from ansible_collections.community.crypto.plugins.module_utils._acme.errors impo
|
||||
ModuleFailException,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.acme import ( # pragma: no cover
|
||||
ACMEClient,
|
||||
|
||||
@@ -48,7 +48,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
|
||||
get_now_datetime,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
import http.client # pragma: no cover
|
||||
import os # pragma: no cover
|
||||
@@ -810,8 +809,8 @@ def create_backend(
|
||||
|
||||
|
||||
__all__ = (
|
||||
"ACMEDirectory",
|
||||
"ACMEClient",
|
||||
"create_default_argspec",
|
||||
"ACMEDirectory",
|
||||
"create_backend",
|
||||
"create_default_argspec",
|
||||
)
|
||||
|
||||
@@ -54,7 +54,6 @@ from ansible_collections.community.crypto.plugins.module_utils._version import (
|
||||
LooseVersion,
|
||||
)
|
||||
|
||||
|
||||
CRYPTOGRAPHY_MINIMAL_VERSION = "1.5"
|
||||
|
||||
CRYPTOGRAPHY_ERROR: None | str
|
||||
@@ -539,9 +538,9 @@ class CryptographyBackend(CryptoBackend):
|
||||
|
||||
|
||||
__all__ = (
|
||||
"CRYPTOGRAPHY_ERROR",
|
||||
"CRYPTOGRAPHY_ERROR",
|
||||
"CRYPTOGRAPHY_MINIMAL_VERSION",
|
||||
"CRYPTOGRAPHY_ERROR",
|
||||
"CRYPTOGRAPHY_VERSION",
|
||||
"CRYPTOGRAPHY_ERROR",
|
||||
"CryptographyBackend",
|
||||
)
|
||||
|
||||
@@ -38,7 +38,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
|
||||
ensure_utc_timezone,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
|
||||
|
||||
|
||||
@@ -29,7 +29,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
|
||||
remove_timezone,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
import os # pragma: no cover
|
||||
|
||||
|
||||
@@ -36,7 +36,6 @@ from ansible_collections.community.crypto.plugins.module_utils._acme.utils impor
|
||||
pem_to_der,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@ from ansible_collections.community.crypto.plugins.module_utils._crypto.pem impor
|
||||
split_pem_list,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.acme import ( # pragma: no cover
|
||||
ACMEClient,
|
||||
@@ -129,4 +128,4 @@ class ChainMatcher(metaclass=abc.ABCMeta):
|
||||
"""
|
||||
|
||||
|
||||
__all__ = ("CertificateChain", "Criterium", "ChainMatcher")
|
||||
__all__ = ("CertificateChain", "ChainMatcher", "Criterium")
|
||||
|
||||
@@ -27,7 +27,6 @@ from ansible_collections.community.crypto.plugins.module_utils._acme.utils impor
|
||||
nopad_b64,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
|
||||
|
||||
@@ -429,11 +428,11 @@ def wait_for_validation(
|
||||
|
||||
|
||||
__all__ = (
|
||||
"create_key_authorization",
|
||||
"Authorization",
|
||||
"Challenge",
|
||||
"combine_identifier",
|
||||
"create_key_authorization",
|
||||
"normalize_combined_identifier",
|
||||
"split_identifier",
|
||||
"Challenge",
|
||||
"Authorization",
|
||||
"wait_for_validation",
|
||||
)
|
||||
|
||||
@@ -13,7 +13,6 @@ from http.client import responses as http_responses
|
||||
|
||||
from ansible.module_utils.common.text.converters import to_text
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
import http.client # pragma: no cover
|
||||
import urllib.error # pragma: no cover
|
||||
@@ -185,11 +184,11 @@ class KeyParsingError(ModuleFailException):
|
||||
|
||||
|
||||
__all__ = (
|
||||
"format_http_status",
|
||||
"format_error_problem",
|
||||
"ModuleFailException",
|
||||
"ACMEProtocolException",
|
||||
"BackendException",
|
||||
"NetworkException",
|
||||
"KeyParsingError",
|
||||
"ModuleFailException",
|
||||
"NetworkException",
|
||||
"format_error_problem",
|
||||
"format_http_status",
|
||||
)
|
||||
|
||||
@@ -19,7 +19,6 @@ from ansible_collections.community.crypto.plugins.module_utils._acme.errors impo
|
||||
ModuleFailException,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible.module_utils.basic import AnsibleModule # pragma: no cover
|
||||
|
||||
|
||||
@@ -24,7 +24,6 @@ from ansible_collections.community.crypto.plugins.module_utils._acme.utils impor
|
||||
nopad_b64,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.acme import ( # pragma: no cover
|
||||
ACMEClient,
|
||||
|
||||
@@ -28,7 +28,6 @@ from ansible_collections.community.crypto.plugins.module_utils._time import (
|
||||
get_now_datetime,
|
||||
)
|
||||
|
||||
|
||||
if t.TYPE_CHECKING:
|
||||
from ansible_collections.community.crypto.plugins.module_utils._acme.backends import ( # pragma: no cover
|
||||
CertificateInformation,
|
||||
@@ -165,10 +164,10 @@ def compute_cert_id(
|
||||
|
||||
|
||||
__all__ = (
|
||||
"nopad_b64",
|
||||
"compute_cert_id",
|
||||
"der_to_pem",
|
||||
"nopad_b64",
|
||||
"parse_retry_after",
|
||||
"pem_to_der",
|
||||
"process_links",
|
||||
"parse_retry_after",
|
||||
"compute_cert_id",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user