mirror of
https://github.com/certbot/certbot.git
synced 2026-08-02 19:42:02 +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
@@ -12,13 +12,13 @@ VENV_NAME.
|
||||
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import shutil
|
||||
import glob
|
||||
import time
|
||||
import os
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import re
|
||||
import time
|
||||
|
||||
REQUIREMENTS = [
|
||||
'-e acme[dev]',
|
||||
|
||||
+1
-1
@@ -16,8 +16,8 @@ import os
|
||||
import sys
|
||||
|
||||
from cryptography.hazmat.backends import default_backend
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa
|
||||
from cryptography.hazmat.primitives import serialization
|
||||
from cryptography.hazmat.primitives.asymmetric import rsa
|
||||
import josepy as jose
|
||||
|
||||
from acme import client as acme_client
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/usr/bin/env python
|
||||
from __future__ import print_function
|
||||
import sys
|
||||
|
||||
import os
|
||||
import re
|
||||
|
||||
import sys
|
||||
|
||||
CERTBOT_ROOT = os.path.dirname(os.path.dirname(os.path.realpath(__file__)))
|
||||
|
||||
|
||||
@@ -8,9 +8,9 @@
|
||||
from __future__ import print_function
|
||||
|
||||
import os
|
||||
import sys
|
||||
import subprocess
|
||||
import re
|
||||
import subprocess
|
||||
import sys
|
||||
|
||||
SKIP_PROJECTS_ON_WINDOWS = ['certbot-apache', 'letshelp-certbot']
|
||||
|
||||
|
||||
@@ -8,13 +8,14 @@
|
||||
# CERTBOT_OLDEST is set, this script must be run with `-e <package-name>` and
|
||||
# no other arguments.
|
||||
|
||||
from __future__ import print_function, absolute_import
|
||||
from __future__ import absolute_import
|
||||
from __future__ import print_function
|
||||
|
||||
import subprocess
|
||||
import os
|
||||
import sys
|
||||
import re
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
|
||||
import merge_requirements as merge_module
|
||||
|
||||
@@ -8,6 +8,7 @@ import sys
|
||||
|
||||
import pip_install
|
||||
|
||||
|
||||
def main(args):
|
||||
new_args = []
|
||||
for arg in args:
|
||||
|
||||
@@ -11,6 +11,7 @@ from __future__ import print_function
|
||||
import os
|
||||
import sys
|
||||
|
||||
|
||||
def main(link):
|
||||
return os.path.realpath(link)
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
"""A version of Python's SimpleHTTPServer that flushes its output."""
|
||||
import sys
|
||||
|
||||
try:
|
||||
from http.server import HTTPServer, SimpleHTTPRequestHandler
|
||||
except ImportError:
|
||||
|
||||
@@ -5,6 +5,7 @@ import sys
|
||||
|
||||
import _venv_common
|
||||
|
||||
|
||||
def create_venv(venv_path):
|
||||
"""Create a Python 2 virtual environment at venv_path.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user