# HG changeset patch # User Brendan Cully # Date 1402444831 25200 # Node ID fecead61d222ae0bd4b866034272e3e8f0ca00b3 # Parent 2d47d81c79fb3ddcd82c600710f1bd41c9f806a8 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 diff -r 2d47d81c79fb -r fecead61d222 mercurial/error.py --- 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"""