From ff69247e7bc90563d8087975aea546743069367e Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 27 Feb 2015 10:34:14 +0100 Subject: [PATCH] fix code formatting in docs --- doc/parsing.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/parsing.txt b/doc/parsing.txt index f9b358c07..762fe7a15 100644 --- a/doc/parsing.txt +++ b/doc/parsing.txt @@ -937,6 +937,8 @@ And now we can take the resulting in-memory tree and iterate over it using ``iterwalk()`` to get the exact same events without parsing the input again: +.. sourcecode:: pycon + >>> context = etree.iterwalk( ... root, events=("start", "end"), tag="element")