summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Pursehouse <david.pursehouse@sonymobile.com>2012-08-22 10:46:11 +0900
committerGustaf Lundh <gustaf.lundh@sonymobile.com>2012-08-23 12:15:26 +0200
commite15c65abc25cd1d5d77ec6815a3c011b9f57ddac (patch)
tree43bd95e2e83abcd88c5d05b6a65393877c51028b
parentdaa851f6cd9edb3851a3884fd2864f0f3dc583b2 (diff)
downloadgit-repo-e15c65abc25cd1d5d77ec6815a3c011b9f57ddac.tar.gz
Remove unused imports
There are several imports that are not used. Remove them. Change-Id: I2ac3be66827bd68d3faedcef7d6bbf30ea01d3f2
-rw-r--r--color.py1
-rw-r--r--git_refs.py1
-rwxr-xr-xmain.py1
-rw-r--r--manifest_xml.py2
-rw-r--r--project.py4
-rw-r--r--subcmds/cherry_pick.py2
-rw-r--r--subcmds/download.py1
-rw-r--r--subcmds/grep.py1
-rw-r--r--subcmds/rebase.py2
9 files changed, 3 insertions, 12 deletions
diff --git a/color.py b/color.py
index 5c612acc..9b3365be 100644
--- a/color.py
+++ b/color.py
@@ -17,7 +17,6 @@ import os
17import sys 17import sys
18 18
19import pager 19import pager
20from git_config import GitConfig
21 20
22COLORS = {None :-1, 21COLORS = {None :-1,
23 'normal' :-1, 22 'normal' :-1,
diff --git a/git_refs.py b/git_refs.py
index 0e3cc820..11241438 100644
--- a/git_refs.py
+++ b/git_refs.py
@@ -14,7 +14,6 @@
14# limitations under the License. 14# limitations under the License.
15 15
16import os 16import os
17import sys
18from trace import Trace 17from trace import Trace
19 18
20HEAD = 'HEAD' 19HEAD = 'HEAD'
diff --git a/main.py b/main.py
index ea29851e..12752299 100755
--- a/main.py
+++ b/main.py
@@ -35,7 +35,6 @@ from git_command import git, GitCommand
35from git_config import init_ssh, close_ssh 35from git_config import init_ssh, close_ssh
36from command import InteractiveCommand 36from command import InteractiveCommand
37from command import MirrorSafeCommand 37from command import MirrorSafeCommand
38from command import PagedCommand
39from subcmds.version import Version 38from subcmds.version import Version
40from editor import Editor 39from editor import Editor
41from error import DownloadError 40from error import DownloadError
diff --git a/manifest_xml.py b/manifest_xml.py
index 26cc14f6..205e4af7 100644
--- a/manifest_xml.py
+++ b/manifest_xml.py
@@ -20,7 +20,7 @@ import sys
20import urlparse 20import urlparse
21import xml.dom.minidom 21import xml.dom.minidom
22 22
23from git_config import GitConfig, IsId 23from git_config import GitConfig
24from project import RemoteSpec, Project, MetaProject, R_HEADS, HEAD 24from project import RemoteSpec, Project, MetaProject, R_HEADS, HEAD
25from error import ManifestParseError 25from error import ManifestParseError
26 26
diff --git a/project.py b/project.py
index 00ebb17f..06baccb5 100644
--- a/project.py
+++ b/project.py
@@ -27,10 +27,8 @@ import time
27from color import Coloring 27from color import Coloring
28from git_command import GitCommand 28from git_command import GitCommand
29from git_config import GitConfig, IsId, GetSchemeFromUrl, ID_RE 29from git_config import GitConfig, IsId, GetSchemeFromUrl, ID_RE
30from error import DownloadError 30from error import GitError, HookError, UploadError
31from error import GitError, HookError, ImportError, UploadError
32from error import ManifestInvalidRevisionError 31from error import ManifestInvalidRevisionError
33from progress import Progress
34from trace import IsTrace, Trace 32from trace import IsTrace, Trace
35 33
36from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M 34from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M
diff --git a/subcmds/cherry_pick.py b/subcmds/cherry_pick.py
index 8da3a750..7890af4d 100644
--- a/subcmds/cherry_pick.py
+++ b/subcmds/cherry_pick.py
@@ -13,7 +13,7 @@
13# See the License for the specific language governing permissions and 13# See the License for the specific language governing permissions and
14# limitations under the License. 14# limitations under the License.
15 15
16import sys, re, string, random, os 16import sys, re
17from command import Command 17from command import Command
18from git_command import GitCommand 18from git_command import GitCommand
19 19
diff --git a/subcmds/download.py b/subcmds/download.py
index 0ea45c3f..0abe90d0 100644
--- a/subcmds/download.py
+++ b/subcmds/download.py
@@ -13,7 +13,6 @@
13# See the License for the specific language governing permissions and 13# See the License for the specific language governing permissions and
14# limitations under the License. 14# limitations under the License.
15 15
16import os
17import re 16import re
18import sys 17import sys
19 18
diff --git a/subcmds/grep.py b/subcmds/grep.py
index 1cb5650b..0dc8f9f6 100644
--- a/subcmds/grep.py
+++ b/subcmds/grep.py
@@ -14,7 +14,6 @@
14# limitations under the License. 14# limitations under the License.
15 15
16import sys 16import sys
17from optparse import SUPPRESS_HELP
18from color import Coloring 17from color import Coloring
19from command import PagedCommand 18from command import PagedCommand
20from git_command import git_require, GitCommand 19from git_command import git_require, GitCommand
diff --git a/subcmds/rebase.py b/subcmds/rebase.py
index 20662b11..2c1752d7 100644
--- a/subcmds/rebase.py
+++ b/subcmds/rebase.py
@@ -17,8 +17,6 @@ import sys
17 17
18from command import Command 18from command import Command
19from git_command import GitCommand 19from git_command import GitCommand
20from git_refs import GitRefs, HEAD, R_HEADS, R_TAGS, R_PUB, R_M
21from error import GitError
22 20
23class Rebase(Command): 21class Rebase(Command):
24 common = True 22 common = True