diff options
author | Georg Brandl <georg@python.org> | 2009-02-20 08:22:21 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-02-20 08:22:21 (GMT) |
commit | 6b5dbaa6c9a02f8c5e8ef4f16b2553285f509e96 (patch) | |
tree | a0b73d946428e3b385ca2c9b478a2a4fed64437c /Doc/library/cgitb.rst | |
parent | 4a698721e6380320a0462ddc2fa4081f133245e6 (diff) | |
download | cpython-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.rst | 5 |
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 |