diff mercurial/hgweb/wsgicgi.py @ 7008:8fee8ff13d37

use Exception(args)-style raising consistently (py3k compatibility)
author Peter Ruibal <peter.ruibal@intel.com>
date Mon, 08 Sep 2008 13:07:00 +0200
parents 1ec2d227a521
children ee8af8a4d905
line wrap: on
line diff
--- a/mercurial/hgweb/wsgicgi.py	Mon Sep 08 12:55:46 2008 +0200
+++ b/mercurial/hgweb/wsgicgi.py	Mon Sep 08 13:07:00 2008 +0200
@@ -53,7 +53,7 @@
             try:
                 if headers_sent:
                     # Re-raise original exception if headers sent
-                    raise exc_info[0], exc_info[1], exc_info[2]
+                    raise exc_info[0](exc_info[1], exc_info[2])
             finally:
                 exc_info = None     # avoid dangling circular ref
         elif headers_set: