mirror of
https://github.com/moepman/acertmgr.git
synced 2024-12-29 09:21:51 +01:00
Optimize imports
This commit is contained in:
parent
da3dc4261f
commit
8808dadbaf
@ -6,9 +6,9 @@
|
||||
# Copyright (c) Rudolf Mayerhofer, 2019.
|
||||
# available under the ISC license, see LICENSE
|
||||
|
||||
import io
|
||||
import grp
|
||||
import importlib
|
||||
import io
|
||||
import os
|
||||
import pwd
|
||||
import shutil
|
||||
|
@ -11,7 +11,6 @@ import io
|
||||
import os
|
||||
|
||||
import tools
|
||||
import io
|
||||
|
||||
ACME_DIR = "/etc/acme"
|
||||
ACME_CONF = os.path.join(ACME_DIR, "acme.conf")
|
||||
|
@ -5,11 +5,11 @@
|
||||
# Copyright (c) Rudolf Mayerhofer, 2019
|
||||
# available under the ISC license, see LICENSE
|
||||
import datetime
|
||||
import io
|
||||
import ipaddress
|
||||
import re
|
||||
import socket
|
||||
import time
|
||||
import io
|
||||
|
||||
import dns
|
||||
import dns.query
|
||||
@ -19,7 +19,6 @@ import dns.update
|
||||
|
||||
from modes.dns.abstract import DNSChallengeHandler
|
||||
|
||||
|
||||
DEFAULT_KEY_ALGORITHM = "HMAC-MD5.SIG-ALG.REG.INT"
|
||||
|
||||
|
||||
|
@ -20,7 +20,6 @@ import os
|
||||
import threading
|
||||
|
||||
from modes.webdir import ChallengeHandler as WebChallengeHandler
|
||||
import datetime
|
||||
|
||||
|
||||
# @brief custom request handler for ACME challenges
|
||||
|
@ -9,7 +9,7 @@ import datetime
|
||||
import os
|
||||
|
||||
from modes.abstract import AbstractChallengeHandler
|
||||
import datetime
|
||||
|
||||
try:
|
||||
from urllib.request import urlopen # Python 3
|
||||
except ImportError:
|
||||
|
4
tools.py
4
tools.py
@ -9,11 +9,11 @@
|
||||
import base64
|
||||
import binascii
|
||||
import datetime
|
||||
import os
|
||||
import hashlib
|
||||
import io
|
||||
import six
|
||||
import os
|
||||
|
||||
import six
|
||||
from cryptography import x509
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives import hashes, serialization
|
||||
|
Loading…
Reference in New Issue
Block a user