diff options
author | David Robillard <d@drobilla.net> | 2019-03-24 13:34:00 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2019-03-24 18:01:46 +0100 |
commit | 5a71d5487933f74b8da90c7ac54058184825f958 (patch) | |
tree | e1972efe8b3cb195f1d6067dc3468caeb5b5c24e /lv2specgen/lv2specgen.py | |
parent | 60b1f0383371232e15431332a1048a0705b83b23 (diff) | |
download | lv2-5a71d5487933f74b8da90c7ac54058184825f958.tar.xz |
Print warning when lxml is not available for validation
Diffstat (limited to 'lv2specgen/lv2specgen.py')
-rwxr-xr-x | lv2specgen/lv2specgen.py | 4 |
1 files changed, 3 insertions, 1 deletions
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 = """<?xml version="1.0" encoding="UTF-8"?> |