[Libreoffice-commits] core.git: bin/gla11y
Samuel Thibault
sthibault at hypra.fr
Sun Mar 4 10:19:57 UTC 2018
bin/gla11y | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
New commits:
commit 0a3151314ad78b86bbb4bd76bac678fbaa9caf06
Author: Samuel Thibault <sthibault at hypra.fr>
Date: Sat Mar 3 18:50:15 2018 +0100
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 at libreoffice.org>
Reviewed-by: Thorsten Behrens <Thorsten.Behrens at CIB.de>
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
More information about the Libreoffice-commits
mailing list