resort a few module imports to follow PEP8
All the stdlib imports are supposed to come before any local imports.
Change-Id: I10c0335ba2ff715fd34c9eb91bfe6560e904df08
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/255593
Tested-by: Mike Frysinger <vapier@google.com>
Reviewed-by: David Pursehouse <dpursehouse@collab.net>
diff --git a/git_config.py b/git_config.py
index 054f5c6..cee33e9 100644
--- a/git_config.py
+++ b/git_config.py
@@ -21,6 +21,7 @@
import json
import os
import re
+import signal
import ssl
import subprocess
import sys
@@ -41,7 +42,6 @@
urllib.request = urllib2
urllib.error = urllib2
-from signal import SIGTERM
from error import GitError, UploadError
import platform_utils
from repo_trace import Trace
@@ -494,7 +494,7 @@
for p in _master_processes:
try:
- os.kill(p.pid, SIGTERM)
+ os.kill(p.pid, signal.SIGTERM)
p.wait()
except OSError:
pass
diff --git a/subcmds/abandon.py b/subcmds/abandon.py
index f347812..5d56abf 100644
--- a/subcmds/abandon.py
+++ b/subcmds/abandon.py
@@ -15,9 +15,11 @@
# limitations under the License.
from __future__ import print_function
-import sys
-from command import Command
+
from collections import defaultdict
+import sys
+
+from command import Command
from git_command import git
from progress import Progress
diff --git a/subcmds/status.py b/subcmds/status.py
index b594bd8..8537e6c 100644
--- a/subcmds/status.py
+++ b/subcmds/status.py
@@ -16,6 +16,10 @@
from __future__ import print_function
+import glob
+import itertools
+import os
+
from command import PagedCommand
try:
@@ -23,11 +27,6 @@
except ImportError:
import dummy_threading as _threading
-import glob
-
-import itertools
-import os
-
from color import Coloring
import platform_utils