comparison mercurial/subrepo.py @ 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 9aa6bee6e9f9
children 7196f11c5c7d
comparison
equal deleted inserted replaced
18295:3cdf04e17ed6 18296:a74101cd6965
15 nullstate = ('', '', 'empty') 15 nullstate = ('', '', 'empty')
16 16
17 class SubrepoAbort(error.Abort): 17 class SubrepoAbort(error.Abort):
18 """Exception class used to avoid handling a subrepo error more than once""" 18 """Exception class used to avoid handling a subrepo error more than once"""
19 def __init__(self, *args, **kw): 19 def __init__(self, *args, **kw):
20 super(SubrepoAbort, self).__init__(*args, **kw) 20 error.Abort.__init__(self, *args, **kw)
21 self.subrepo = kw.get('subrepo') 21 self.subrepo = kw.get('subrepo')
22 22
23 def annotatesubrepoerror(func): 23 def annotatesubrepoerror(func):
24 def decoratedmethod(self, *args, **kargs): 24 def decoratedmethod(self, *args, **kargs):
25 try: 25 try: