[elbe-devel] [PATCH 3/3] treeutils: make text() return "" when el.text is None
Olivier Dion
dion at linutronix.de
Wed Jul 15 17:43:22 CEST 2020
On Wed, 15 Jul 2020, Torben Hohn <torben.hohn at linutronix.de> wrote:
> lxml returns None when there is an empty string between nodes.
> This is not expected by text()
>
> Return "" when el.text is None.
>
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
Reviewed-by: Olivier Dion <dion at linutronix.de>
--
Olivier Dion
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
More information about the elbe-devel
mailing list