1
0
mirror of https://github.com/moepman/acertmgr.git synced 2025-01-01 04:21:51 +01:00

Optimize imports

This commit is contained in:
Kishi85 2019-02-18 20:45:28 +01:00
parent da3dc4261f
commit 8808dadbaf
6 changed files with 5 additions and 8 deletions

View File

@ -6,9 +6,9 @@
# Copyright (c) Rudolf Mayerhofer, 2019. # Copyright (c) Rudolf Mayerhofer, 2019.
# available under the ISC license, see LICENSE # available under the ISC license, see LICENSE
import io
import grp import grp
import importlib import importlib
import io
import os import os
import pwd import pwd
import shutil import shutil

View File

@ -11,7 +11,6 @@ import io
import os import os
import tools import tools
import io
ACME_DIR = "/etc/acme" ACME_DIR = "/etc/acme"
ACME_CONF = os.path.join(ACME_DIR, "acme.conf") ACME_CONF = os.path.join(ACME_DIR, "acme.conf")

View File

@ -5,11 +5,11 @@
# Copyright (c) Rudolf Mayerhofer, 2019 # Copyright (c) Rudolf Mayerhofer, 2019
# available under the ISC license, see LICENSE # available under the ISC license, see LICENSE
import datetime import datetime
import io
import ipaddress import ipaddress
import re import re
import socket import socket
import time import time
import io
import dns import dns
import dns.query import dns.query
@ -19,7 +19,6 @@ import dns.update
from modes.dns.abstract import DNSChallengeHandler from modes.dns.abstract import DNSChallengeHandler
DEFAULT_KEY_ALGORITHM = "HMAC-MD5.SIG-ALG.REG.INT" DEFAULT_KEY_ALGORITHM = "HMAC-MD5.SIG-ALG.REG.INT"

View File

@ -20,7 +20,6 @@ import os
import threading import threading
from modes.webdir import ChallengeHandler as WebChallengeHandler from modes.webdir import ChallengeHandler as WebChallengeHandler
import datetime
# @brief custom request handler for ACME challenges # @brief custom request handler for ACME challenges

View File

@ -9,7 +9,7 @@ import datetime
import os import os
from modes.abstract import AbstractChallengeHandler from modes.abstract import AbstractChallengeHandler
import datetime
try: try:
from urllib.request import urlopen # Python 3 from urllib.request import urlopen # Python 3
except ImportError: except ImportError:

View File

@ -9,11 +9,11 @@
import base64 import base64
import binascii import binascii
import datetime import datetime
import os
import hashlib import hashlib
import io import io
import six import os
import six
from cryptography import x509 from cryptography import x509
from cryptography.hazmat.backends import default_backend from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import hashes, serialization from cryptography.hazmat.primitives import hashes, serialization