diff options
author | David Pursehouse <david.pursehouse@sonymobile.com> | 2012-10-03 15:47:02 +0900 |
---|---|---|
committer | Gustaf Lundh <gustaf.lundh@sonymobile.com> | 2012-10-04 10:31:09 +0200 |
commit | b926116a1483d04df99252ed02418bf8e58094a3 (patch) | |
tree | 67bbae4a818085b42de7a6a3ee41aaa5fdade55c | |
parent | 3ff9decfd4e2f1fed71658d0f78a17895f80ff5f (diff) | |
download | git-repo-b926116a1483d04df99252ed02418bf8e58094a3.tar.gz |
Remove `ImportError` class
The definition of `ImportError` redefines the Python built-in
class of the same name.
It is not used anywhere, so remove it.
Change-Id: I557ce28c93a3306fff72873dc6f477330fc33128
-rw-r--r-- | error.py | 9 |
1 files changed, 0 insertions, 9 deletions
@@ -39,15 +39,6 @@ class GitError(Exception): | |||
39 | def __str__(self): | 39 | def __str__(self): |
40 | return self.command | 40 | return self.command |
41 | 41 | ||
42 | class ImportError(Exception): | ||
43 | """An import from a non-Git format cannot be performed. | ||
44 | """ | ||
45 | def __init__(self, reason): | ||
46 | self.reason = reason | ||
47 | |||
48 | def __str__(self): | ||
49 | return self.reason | ||
50 | |||
51 | class UploadError(Exception): | 42 | class UploadError(Exception): |
52 | """A bundle upload to Gerrit did not succeed. | 43 | """A bundle upload to Gerrit did not succeed. |
53 | """ | 44 | """ |