diff options
author | Georg Brandl <georg@python.org> | 2009-04-05 22:20:44 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-04-05 22:20:44 (GMT) |
commit | 0d8f07305d7ddcf684c3db5680263c98cf70c067 (patch) | |
tree | 8862b638d9b3e98ce030044765e9231333821f94 /Doc/library/cgitb.rst | |
parent | 889b0aa4506d5ea43985865a44562ebd39b3bf00 (diff) | |
download | cpython-0d8f07305d7ddcf684c3db5680263c98cf70c067.zip cpython-0d8f07305d7ddcf684c3db5680263c98cf70c067.tar.gz cpython-0d8f07305d7ddcf684c3db5680263c98cf70c067.tar.bz2 |
Update signature style of optional arguments, part two.
Diffstat (limited to 'Doc/library/cgitb.rst')
-rw-r--r-- | Doc/library/cgitb.rst | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Doc/library/cgitb.rst b/Doc/library/cgitb.rst index 854ea95..6827c8e 100644 --- a/Doc/library/cgitb.rst +++ b/Doc/library/cgitb.rst @@ -1,4 +1,3 @@ - :mod:`cgitb` --- Traceback manager for CGI scripts ================================================== @@ -34,7 +33,7 @@ displayed in the browser and whether the report is logged to a file for later analysis. -.. function:: enable([display[, logdir[, context[, format]]]]) +.. function:: enable(display=1, logdir=None, context=5, format="html") .. index:: single: excepthook() (in module sys) @@ -51,7 +50,7 @@ analysis. value forces plain text output. The default value is ``"html"``. -.. function:: handler([info]) +.. function:: handler(info=None) This function handles an exception using the default settings (that is, show a report in the browser, but don't log to a file). This can be used when you've |