]> granicus.if.org Git - python/commitdiff
Issue 6685: 'toupper' -> 'upper' in cgi doc example explanation.
authorR. David Murray <rdmurray@bitdance.com>
Mon, 17 Aug 2009 19:26:49 +0000 (19:26 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Mon, 17 Aug 2009 19:26:49 +0000 (19:26 +0000)
Doc/library/cgi.rst

index 138f8085ebbf42dbff9fe9bd41cb1f349558ef6f..efee71119fcc2f2968c171abb203e01ed650e39b 100644 (file)
@@ -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.