summaryrefslogtreecommitdiffstats
path: root/Doc/library/cgitb.rst
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-02-20 08:22:21 (GMT)
committerGeorg Brandl <georg@python.org>2009-02-20 08:22:21 (GMT)
commit6b5dbaa6c9a02f8c5e8ef4f16b2553285f509e96 (patch)
treea0b73d946428e3b385ca2c9b478a2a4fed64437c /Doc/library/cgitb.rst
parent4a698721e6380320a0462ddc2fa4081f133245e6 (diff)
downloadcpython-6b5dbaa6c9a02f8c5e8ef4f16b2553285f509e96.zip
cpython-6b5dbaa6c9a02f8c5e8ef4f16b2553285f509e96.tar.gz
cpython-6b5dbaa6c9a02f8c5e8ef4f16b2553285f509e96.tar.bz2
At least separate imports from other statements.
Diffstat (limited to 'Doc/library/cgitb.rst')
-rw-r--r--Doc/library/cgitb.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/library/cgitb.rst b/Doc/library/cgitb.rst
index 327cd17..052b821 100644
--- a/Doc/library/cgitb.rst
+++ b/Doc/library/cgitb.rst
@@ -26,9 +26,10 @@ as well as the values of the arguments and local variables to currently running
functions, to help you debug the problem. Optionally, you can save this
information to a file instead of sending it to the browser.
-To enable this feature, simply add one line to the top of your CGI script::
+To enable this feature, simply add this to the top of your CGI script::
- import cgitb; cgitb.enable()
+ import cgitb
+ cgitb.enable()
The options to the :func:`enable` function control whether the report is
displayed in the browser and whether the report is logged to a file for later