From 63c50c2a311895e7db7c507d1695d5c36f7c581f Mon Sep 17 00:00:00 2001 From: Yu Ming Zhu Date: Mon, 9 Dec 2019 23:45:18 +0000 Subject: [PATCH] sort imports for other scripts --- devtools/fakehub | 5 +++-- devtools/fakeweb | 8 ++++---- runtests | 2 +- setup.py | 3 +++ 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/devtools/fakehub b/devtools/fakehub index 3b21dfa1..c1b777dd 100755 --- a/devtools/fakehub +++ b/devtools/fakehub @@ -1,12 +1,13 @@ #!/usr/bin/python2 -from __future__ import absolute_import -from __future__ import print_function +from __future__ import absolute_import, print_function + import ast import os import os.path import pprint import sys + from six.moves import cStringIO from six.moves.urllib.parse import quote diff --git a/devtools/fakeweb b/devtools/fakeweb index 469c6931..12454e32 100755 --- a/devtools/fakeweb +++ b/devtools/fakeweb @@ -1,16 +1,16 @@ #!/usr/bin/python2 -from __future__ import absolute_import -from __future__ import print_function +from __future__ import absolute_import, print_function + import mimetypes import os import os.path import pprint import sys +from wsgiref.simple_server import make_server +from wsgiref.util import setup_testing_defaults from six.moves.urllib.parse import quote -from wsgiref.util import setup_testing_defaults -from wsgiref.simple_server import make_server CWD = os.getcwd() sys.path.insert(0, CWD) diff --git a/runtests b/runtests index 5eeea2c9..29ab8081 100755 --- a/runtests +++ b/runtests @@ -1,8 +1,8 @@ #!/usr/bin/python2 -from multiprocessing import Pool import subprocess import tempfile +from multiprocessing import Pool def explode_ref(ref, dest): diff --git a/setup.py b/setup.py index c91bcd2b..ea8b81b2 100644 --- a/setup.py +++ b/setup.py @@ -1,7 +1,10 @@ from __future__ import absolute_import + import sys + from setuptools import setup + def get_install_requires(): # To install all build requires: # $ dnf install python-pip git krb5-devel gcc redhat-rpm-config \