hgweb: disable cgitb by default
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 12 Feb 2008 19:07:45 +0300
changeset 6080 4baad19c4801
parent 6079 ea34059b89de
child 6081 beb775df5630
hgweb: disable cgitb by default
hgweb.cgi
hgwebdir.cgi
--- a/hgweb.cgi	Tue Feb 12 11:35:06 2008 +0100
+++ b/hgweb.cgi	Tue Feb 12 19:07:45 2008 +0300
@@ -9,9 +9,9 @@
 # enable importing on demand to reduce startup time
 from mercurial import demandimport; demandimport.enable()
 
-# send python tracebacks to the browser if an error occurs:
-import cgitb
-cgitb.enable()
+# Uncomment to send python tracebacks to the browser if an error occurs:
+#import cgitb
+#cgitb.enable()
 
 # If you'd like to serve pages with UTF-8 instead of your default
 # locale charset, you can do so by uncommenting the following lines.
--- a/hgwebdir.cgi	Tue Feb 12 11:35:06 2008 +0100
+++ b/hgwebdir.cgi	Tue Feb 12 19:07:45 2008 +0300
@@ -9,9 +9,9 @@
 # enable importing on demand to reduce startup time
 from mercurial import demandimport; demandimport.enable()
 
-# send python tracebacks to the browser if an error occurs:
-import cgitb
-cgitb.enable()
+# Uncomment to send python tracebacks to the browser if an error occurs:
+#import cgitb
+#cgitb.enable()
 
 # If you'd like to serve pages with UTF-8 instead of your default
 # locale charset, you can do so by uncommenting the following lines.