changeset 18296:a74101cd6965

subrepo: fix python2.4 compatibility after 9aa6bee6e9f9 super(SubrepoAbort, self).__init__(*args, **kw) raises TypeError: super() argument 1 must be type, not classobj
author Brendan Cully <brendan@kublai.com>
date Thu, 10 Jan 2013 10:35:37 -0800
parents 3cdf04e17ed6
children 7196f11c5c7d
files mercurial/subrepo.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/subrepo.py	Thu Jan 10 16:25:06 2013 +0000
+++ b/mercurial/subrepo.py	Thu Jan 10 10:35:37 2013 -0800
@@ -17,7 +17,7 @@
 class SubrepoAbort(error.Abort):
     """Exception class used to avoid handling a subrepo error more than once"""
     def __init__(self, *args, **kw):
-        super(SubrepoAbort, self).__init__(*args, **kw)
+        error.Abort.__init__(self, *args, **kw)
         self.subrepo = kw.get('subrepo')
 
 def annotatesubrepoerror(func):