hgweb: drop use of super() for Exception base class
authorMatt Mackall <mpm@selenic.com>
Mon, 14 Mar 2011 15:28:56 -0500
changeset 13640 19f8629ea107
parent 13639 595dba23d337
child 13643 537899158396
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.
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