diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-08-17 19:26:49 (GMT) |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-08-17 19:26:49 (GMT) |
commit | 2c9e33f3a6b97b9b3ea16a92ccf3b38d9816aa78 (patch) | |
tree | 8bd9bbe04709e5415dc093d82b05e0154f2eb42a | |
parent | fe8745d1e4d2d17f110e927da011da7cc3892edd (diff) | |
download | cpython-2c9e33f3a6b97b9b3ea16a92ccf3b38d9816aa78.zip cpython-2c9e33f3a6b97b9b3ea16a92ccf3b38d9816aa78.tar.gz cpython-2c9e33f3a6b97b9b3ea16a92ccf3b38d9816aa78.tar.bz2 |
Issue 6685: 'toupper' -> 'upper' in cgi doc example explanation.
-rw-r--r-- | Doc/library/cgi.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/library/cgi.rst b/Doc/library/cgi.rst index 138f808..efee711 100644 --- a/Doc/library/cgi.rst +++ b/Doc/library/cgi.rst @@ -213,7 +213,7 @@ The problem with the code is that you should never expect that a client will provide valid input to your scripts. For example, if a curious user appends another ``user=foo`` pair to the query string, then the script would crash, because in this situation the ``getvalue("user")`` method call returns a list -instead of a string. Calling the :meth:`toupper` method on a list is not valid +instead of a string. Calling the :meth:`~str.upper` method on a list is not valid (since lists do not have a method of this name) and results in an :exc:`AttributeError` exception. |