Mercurial > public > mercurial-scm > hg
comparison mercurial/error.py @ 26693:338af85109dd
error: remove superfluous pass statements
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 15 Oct 2015 09:52:32 -0400 |
parents | 8d1cfd77b64f |
children | 5e46123e6c35 |
comparison
equal
deleted
inserted
replaced
26692:8d1cfd77b64f | 26693:338af85109dd |
---|---|
53 class InterventionRequired(Exception): | 53 class InterventionRequired(Exception): |
54 """Exception raised when a command requires human intervention.""" | 54 """Exception raised when a command requires human intervention.""" |
55 | 55 |
56 class Abort(HintException): | 56 class Abort(HintException): |
57 """Raised if a command needs to print an error and exit.""" | 57 """Raised if a command needs to print an error and exit.""" |
58 pass | |
59 | 58 |
60 class HookLoadError(Abort): | 59 class HookLoadError(Abort): |
61 """raised when loading a hook fails, aborting an operation | 60 """raised when loading a hook fails, aborting an operation |
62 | 61 |
63 Exists to allow more specialized catching.""" | 62 Exists to allow more specialized catching.""" |
64 pass | |
65 | 63 |
66 class HookAbort(Abort): | 64 class HookAbort(Abort): |
67 """raised when a validation hook fails, aborting an operation | 65 """raised when a validation hook fails, aborting an operation |
68 | 66 |
69 Exists to allow more specialized catching.""" | 67 Exists to allow more specialized catching.""" |
70 pass | |
71 | 68 |
72 class ConfigError(Abort): | 69 class ConfigError(Abort): |
73 """Exception raised when parsing config files""" | 70 """Exception raised when parsing config files""" |
74 | 71 |
75 class UpdateAbort(Abort): | 72 class UpdateAbort(Abort): |
106 class CapabilityError(RepoError): | 103 class CapabilityError(RepoError): |
107 pass | 104 pass |
108 | 105 |
109 class RequirementError(RepoError): | 106 class RequirementError(RepoError): |
110 """Exception raised if .hg/requires has an unknown entry.""" | 107 """Exception raised if .hg/requires has an unknown entry.""" |
111 pass | |
112 | 108 |
113 class LockError(IOError): | 109 class LockError(IOError): |
114 def __init__(self, errno, strerror, filename, desc): | 110 def __init__(self, errno, strerror, filename, desc): |
115 IOError.__init__(self, errno, strerror, filename) | 111 IOError.__init__(self, errno, strerror, filename) |
116 self.desc = desc | 112 self.desc = desc |
173 msg = '%s - %s' % (msg, ', '.join(entries)) | 169 msg = '%s - %s' % (msg, ', '.join(entries)) |
174 ValueError.__init__(self, msg) | 170 ValueError.__init__(self, msg) |
175 | 171 |
176 class ReadOnlyPartError(RuntimeError): | 172 class ReadOnlyPartError(RuntimeError): |
177 """error raised when code tries to alter a part being generated""" | 173 """error raised when code tries to alter a part being generated""" |
178 pass | |
179 | 174 |
180 class PushkeyFailed(Abort): | 175 class PushkeyFailed(Abort): |
181 """error raised when a pushkey part failed to update a value""" | 176 """error raised when a pushkey part failed to update a value""" |
182 | 177 |
183 def __init__(self, partid, namespace=None, key=None, new=None, old=None, | 178 def __init__(self, partid, namespace=None, key=None, new=None, old=None, |