From 5a71d5487933f74b8da90c7ac54058184825f958 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 24 Mar 2019 13:34:00 +0100 Subject: Print warning when lxml is not available for validation --- lv2specgen/lv2specgen.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lv2specgen') diff --git a/lv2specgen/lv2specgen.py b/lv2specgen/lv2specgen.py index ddd0ba5..b409ac5 100755 --- a/lv2specgen/lv2specgen.py +++ b/lv2specgen/lv2specgen.py @@ -326,7 +326,9 @@ def getComment(m, urinode, classlist, proplist, instalist): return text markup = rgx.sub(translateLocalLink, markup) - if have_lxml: + if not have_lxml: + print("warning: No Python lxml module found, output may be invalid") + else: try: # Parse and validate documentation as XHTML Basic 1.1 doc = """ -- cgit v1.2.1