subrepo: fix python2.4 compatibility after 9aa6bee6e9f9
authorBrendan Cully <brendan@kublai.com>
Thu, 10 Jan 2013 10:35:37 -0800
changeset 18296 a74101cd6965
parent 18295 3cdf04e17ed6
child 18297 7196f11c5c7d
subrepo: fix python2.4 compatibility after 9aa6bee6e9f9 super(SubrepoAbort, self).__init__(*args, **kw) raises TypeError: super() argument 1 must be type, not classobj
mercurial/subrepo.py
--- 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):