Mercurial > hg-stable
changeset 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 | 2d47d81c79fb |
children | c5699c2d690b |
files | mercurial/error.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/error.py Thu Jun 12 14:40:45 2014 -0500 +++ b/mercurial/error.py Tue Jun 10 17:00:31 2014 -0700 @@ -111,7 +111,7 @@ msg = parttype if self.params: msg = '%s - %s' % (msg, ', '.join(self.params)) - super(BundleValueError, self).__init__(msg) + ValueError.__init__(self, msg) class ReadOnlyPartError(RuntimeError): """error raised when code tries to alter a part being generated"""