# HG changeset patch # User Brendan Cully # Date 2013-01-10 18:35:37 # Node ID a74101cd6965c33ef35e28cb69512b72c80fdc2f # Parent 3cdf04e17ed62b2af7974f17dbea55ca455ecfa9 subrepo: fix python2.4 compatibility after 9aa6bee6e9f9 super(SubrepoAbort, self).__init__(*args, **kw) raises TypeError: super() argument 1 must be type, not classobj diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -17,7 +17,7 @@ nullstate = ('', '', 'empty') 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):