Mercurial > public > mercurial-scm > hg
comparison mercurial/error.py @ 21747:fecead61d222
error: restore python 2.4 compatibility for BundleValueError
Under python 2.4, this:
super(BundleValueError, self).__init__(msg)
raises this:
TypeError: super() argument 1 must be type, not classobj
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Tue, 10 Jun 2014 17:00:31 -0700 |
parents | 3e8bcc90f07c |
children | e3714b927af5 |
comparison
equal
deleted
inserted
replaced
21746:2d47d81c79fb | 21747:fecead61d222 |
---|---|
109 msg = 'Stream Parameter' | 109 msg = 'Stream Parameter' |
110 else: | 110 else: |
111 msg = parttype | 111 msg = parttype |
112 if self.params: | 112 if self.params: |
113 msg = '%s - %s' % (msg, ', '.join(self.params)) | 113 msg = '%s - %s' % (msg, ', '.join(self.params)) |
114 super(BundleValueError, self).__init__(msg) | 114 ValueError.__init__(self, msg) |
115 | 115 |
116 class ReadOnlyPartError(RuntimeError): | 116 class ReadOnlyPartError(RuntimeError): |
117 """error raised when code tries to alter a part being generated""" | 117 """error raised when code tries to alter a part being generated""" |
118 pass | 118 pass |
119 | 119 |