diff options
| author | Mike Frysinger <vapier@google.com> | 2020-02-17 14:58:37 -0500 |
|---|---|---|
| committer | David Pursehouse <dpursehouse@collab.net> | 2020-02-18 06:28:12 +0000 |
| commit | af1e5dea3511c7e01f9a0a31f6e254d63848bed5 (patch) | |
| tree | ed30469d323af0213030345d1ce6a8f1220d29dc /git_config.py | |
| parent | 3cceda535ddbe1dae417a45db64895da45e97520 (diff) | |
| download | git-repo-af1e5dea3511c7e01f9a0a31f6e254d63848bed5.tar.gz | |
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>
Diffstat (limited to 'git_config.py')
| -rw-r--r-- | git_config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/git_config.py b/git_config.py index 054f5c64..cee33e92 100644 --- a/git_config.py +++ b/git_config.py | |||
| @@ -21,6 +21,7 @@ import errno | |||
| 21 | import json | 21 | import json |
| 22 | import os | 22 | import os |
| 23 | import re | 23 | import re |
| 24 | import signal | ||
| 24 | import ssl | 25 | import ssl |
| 25 | import subprocess | 26 | import subprocess |
| 26 | import sys | 27 | import sys |
| @@ -41,7 +42,6 @@ else: | |||
| 41 | urllib.request = urllib2 | 42 | urllib.request = urllib2 |
| 42 | urllib.error = urllib2 | 43 | urllib.error = urllib2 |
| 43 | 44 | ||
| 44 | from signal import SIGTERM | ||
| 45 | from error import GitError, UploadError | 45 | from error import GitError, UploadError |
| 46 | import platform_utils | 46 | import platform_utils |
| 47 | from repo_trace import Trace | 47 | from repo_trace import Trace |
| @@ -494,7 +494,7 @@ def close_ssh(): | |||
| 494 | 494 | ||
| 495 | for p in _master_processes: | 495 | for p in _master_processes: |
| 496 | try: | 496 | try: |
| 497 | os.kill(p.pid, SIGTERM) | 497 | os.kill(p.pid, signal.SIGTERM) |
| 498 | p.wait() | 498 | p.wait() |
| 499 | except OSError: | 499 | except OSError: |
| 500 | pass | 500 | pass |
