Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 226f697

Browse files
committed
fix method name in example code
1 parent 7663729 commit 226f697

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Doc/lib/libcgi.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ \subsection{Higher Level Interface}
225225
example this code:
226226

227227
\begin{verbatim}
228-
user = form.getvalue("user").toupper()
228+
user = form.getvalue("user").upper()
229229
\end{verbatim}
230230

231231
The problem with the code is that you should never expect that a
@@ -272,7 +272,7 @@ \subsection{Higher Level Interface}
272272
\begin{verbatim}
273273
import cgi
274274
form = cgi.FieldStorage()
275-
user = form.getfirst("user", "").toupper() # This way it's safe.
275+
user = form.getfirst("user", "").upper() # This way it's safe.
276276
for item in form.getlist("item"):
277277
do_something(item)
278278
\end{verbatim}

0 commit comments

Comments
 (0)