diff mercurial/hgweb/common.py @ 13640:19f8629ea107

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.
author Matt Mackall <mpm@selenic.com>
date Mon, 14 Mar 2011 15:28:56 -0500
parents 0bef8f69c078
children 141f88ae5276
line wrap: on
line diff
--- 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