Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7663729 commit 226f697Copy full SHA for 226f697
1 file changed
Doc/lib/libcgi.tex
@@ -225,7 +225,7 @@ \subsection{Higher Level Interface}
225
example this code:
226
227
\begin{verbatim}
228
-user = form.getvalue("user").toupper()
+user = form.getvalue("user").upper()
229
\end{verbatim}
230
231
The problem with the code is that you should never expect that a
@@ -272,7 +272,7 @@ \subsection{Higher Level Interface}
272
273
import cgi
274
form = cgi.FieldStorage()
275
-user = form.getfirst("user", "").toupper() # This way it's safe.
+user = form.getfirst("user", "").upper() # This way it's safe.
276
for item in form.getlist("item"):
277
do_something(item)
278
0 commit comments