# HG changeset patch # User Maxim Dounin # Date 1202832465 -10800 # Node ID 4baad19c48014cf6aa331292e084a086a4dfafb6 # Parent ea34059b89deb34a1fb2afd547f5d094f61955ac hgweb: disable cgitb by default diff -r ea34059b89de -r 4baad19c4801 hgweb.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. diff -r ea34059b89de -r 4baad19c4801 hgwebdir.cgi --- 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.