Browse Source

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>
Mike Frysinger 6 years ago
parent
commit
af1e5dea35
3 changed files with 9 additions and 8 deletions
  1. 2 2
      git_config.py
  2. 3 1
      subcmds/abandon.py
  3. 4 5
      subcmds/status.py

+ 2 - 2
git_config.py

@@ -21,6 +21,7 @@ import errno
 import json
 import os
 import re
+import signal
 import ssl
 import subprocess
 import sys
@@ -41,7 +42,6 @@ else:
   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 @@ def close_ssh():
 
   for p in _master_processes:
     try:
-      os.kill(p.pid, SIGTERM)
+      os.kill(p.pid, signal.SIGTERM)
       p.wait()
     except OSError:
       pass

+ 3 - 1
subcmds/abandon.py

@@ -15,9 +15,11 @@
 # limitations under the License.
 
 from __future__ import print_function
+
+from collections import defaultdict
 import sys
+
 from command import Command
-from collections import defaultdict
 from git_command import git
 from progress import Progress
 

+ 4 - 5
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 @@ try:
 except ImportError:
   import dummy_threading as _threading
 
-import glob
-
-import itertools
-import os
-
 from color import Coloring
 import platform_utils