changeset 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 595dba23d337
children 537899158396
files mercurial/hgweb/common.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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