diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-09-11 14:33:51 +0900 |
---|---|---|
committer | Gustaf Lundh <gustaf.lundh@sonymobile.com> | 2012-09-18 09:54:57 +0200 |
commit | e00aa6b923d28a3c910f85e7726e4ba1d2a9aebd (patch) | |
tree | 07c848b81c58e5d4a8e34ecae8606ee5fa62679e /repo | |
parent | 86d973d24ec6771504c37eddc535dff8e03c724f (diff) | |
download | git-repo-e00aa6b923d28a3c910f85e7726e4ba1d2a9aebd.tar.gz |
Clean up imports
manifest_xml: import `HEAD` and `R_HEADS` from correct module
version: import `HEAD` from correct module
`HEAD` and `R_HEADS` should be imported from the git_refs module,
where they are originally defined, rather than from the project
module.
repo: remove unused import of readline
cherry_pick: import standard modules on separate lines
smartsync: import subcmd modules explicitly from subcmd
Use:
`import re
import sys`
and
`from subcmds.sync import Sync`
Instead of:
`import sys, re`
and
`from sync import Sync`
Change-Id: Ie10dd6832710939634c4f5c86b9ba5a9cd6fc92e
Diffstat (limited to 'repo')
-rwxr-xr-x | repo | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -88,7 +88,6 @@ REPO_MAIN = S_repo + '/main.py' # main script | |||
88 | import optparse | 88 | import optparse |
89 | import os | 89 | import os |
90 | import re | 90 | import re |
91 | import readline | ||
92 | import subprocess | 91 | import subprocess |
93 | import sys | 92 | import sys |
94 | import urllib2 | 93 | import urllib2 |