# HG changeset patch # User Matt Mackall # Date 1300134536 18000 # Node ID 19f8629ea107593355b49f1539dc3d8705678559 # Parent 595dba23d33780a5f2752a837898861704ef18bf hgweb: drop use of super() for Exception base class In Python 2.4, Exception is an old-style class and doesn't work with super. diff -r 595dba23d337 -r 19f8629ea107 mercurial/hgweb/common.py --- a/mercurial/hgweb/common.py Mon Mar 14 13:11:26 2011 -0500 +++ b/mercurial/hgweb/common.py Mon Mar 14 15:28:56 2011 -0500 @@ -73,7 +73,7 @@ def __init__(self, code, message=None, headers=[]): if message is None: message = _statusmessage(code) - super(Exception, self).__init__() + Exception.__init__(self) self.code = code self.message = message self.headers = headers