[PATCH] error: restore python 2.4 compatibility for BundleValueError
Brendan Cully
brendan at kublai.com
Tue Jun 10 19:13:02 CDT 2014
# HG changeset patch
# User Brendan Cully <brendan at kublai.com>
# Date 1402444831 25200
# Tue Jun 10 17:00:31 2014 -0700
# Node ID b938ceeaa41dfeeb1ab7ddbebf0426aae5a1ed49
# Parent 7afe70a5d2ad5b22c21ba9be849451407c1f337f
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 7afe70a5d2ad -r b938ceeaa41d mercurial/error.py
--- a/mercurial/error.py Tue May 27 14:45:31 2014 -0700
+++ 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"""
More information about the Mercurial-devel
mailing list