]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix problem in example code. It's minor in this particular example,
authorFred Drake <fdrake@acm.org>
Tue, 3 Dec 2002 22:58:04 +0000 (22:58 +0000)
committerFred Drake <fdrake@acm.org>
Tue, 3 Dec 2002 22:58:04 +0000 (22:58 +0000)
but can lead to mysterious problems in real applications.

Doc/lib/libpyexpat.tex

index 356e4b74673cf08f3cdb47de386d6f8cbe85d2bb..9153c92cc7d4307b95a1c6290668c906dc448377 100644 (file)
@@ -451,7 +451,7 @@ p.CharacterDataHandler = char_data
 p.Parse("""<?xml version="1.0"?>
 <parent id="top"><child1 name="paul">Text goes here</child1>
 <child2 name="fred">More text</child2>
-</parent>""")
+</parent>""", 1)
 \end{verbatim}
 
 The output from this program is: