mirror of
https://github.com/certbot/certbot.git
synced 2026-07-28 08:45:22 +02:00
Reorganize imports (#7616)
* Isort execution * Fix pylint, adapt coverage * New isort * Fix magic_typing lint * Second round * Fix pylint * Third round. Store isort configuration * Fix latest mistakes * Other fixes * Add newline * Fix lint errors
This commit is contained in:
committed by
ohemorange
parent
34b568f366
commit
e048da1e38
@@ -6,15 +6,14 @@ import subprocess
|
||||
import tarfile
|
||||
import tempfile
|
||||
import unittest
|
||||
import pkg_resources
|
||||
|
||||
import mock
|
||||
# six is used in mock.patch()
|
||||
import mock
|
||||
import pkg_resources
|
||||
import six # pylint: disable=unused-import
|
||||
|
||||
import letshelp_certbot.apache as letshelp_le_apache
|
||||
|
||||
|
||||
_PARTIAL_CONF_PATH = os.path.join("mods-available", "ssl.load")
|
||||
_PARTIAL_LINK_PATH = os.path.join("mods-enabled", "ssl.load")
|
||||
_CONFIG_FILE = pkg_resources.resource_filename(
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
"""Shim class to not have to depend on typing module in prod."""
|
||||
import sys
|
||||
|
||||
|
||||
class TypingClass(object):
|
||||
"""Ignore import errors by getting anything"""
|
||||
def __getattr__(self, name):
|
||||
|
||||
Reference in New Issue
Block a user