From a8ab41dc88f7adec8532a039d80ef292499d57bf Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Sat, 30 Mar 2024 22:10:23 +0100 Subject: [PATCH] docs: Minor cleanup. --- doc/lxmlhtml.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/lxmlhtml.txt b/doc/lxmlhtml.txt index 5800c2bba..d07eacb7e 100644 --- a/doc/lxmlhtml.txt +++ b/doc/lxmlhtml.txt @@ -433,7 +433,7 @@ You can, for instance, do: ... name='John Smith', ... phone='555-555-3949', ... interest=set(['cats', 'llamas'])) - >>> print tostring(form) + >>> print(tostring(form))
@@ -479,6 +479,7 @@ Example: >>> page = parse('http://tinyurl.com').getroot() >>> page.forms[0].fields['url'] = 'http://lxml.de/' >>> result = parse(submit_form(page.forms[0])).getroot() + >>> [a.attrib['href'] for a in result.xpath("//a[@target='_blank']")] ['http://tinyurl.com/2xae8s', 'http://preview.tinyurl.com/2xae8s']