diff options
author | Samuel Thibault <sthibault@hypra.fr> | 2018-03-03 18:50:15 +0100 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2018-03-04 11:19:37 +0100 |
commit | 0a3151314ad78b86bbb4bd76bac678fbaa9caf06 (patch) | |
tree | f32c12d23a32f8cf8038a4b626cd7eeb2ab0d25d /bin/gla11y | |
parent | 70b448724f55958acd9907fe51d20ef1b779046a (diff) |
gla11y: allow python 2.6 when lxml is available
python2.6's internal xml parser is not enough for gla11y, but it can run
python-lxml fine.
Change-Id: I725471729c8e2f25ce60f1d92e08d87a96e171a5
Reviewed-on: https://gerrit.libreoffice.org/50686
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'bin/gla11y')
-rwxr-xr-x | bin/gla11y | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/bin/gla11y b/bin/gla11y index 443e4e774760..fa6e7281a0cd 100755 --- a/bin/gla11y +++ b/bin/gla11y @@ -35,12 +35,11 @@ try: import lxml.etree as ET lxml = True except ImportError: + if sys.version_info < (2,7): + exit() import xml.etree.ElementTree as ET lxml = False -if sys.version_info < (2,7): - exit() - progname = os.path.basename(sys.argv[0]) suppressions = {} gen_suppr = None |