[wdoc] Remove fallback about xml.etree module
Module xml.etree exists since python 2.5.
--- a/cubicweb/web/views/wdoc.py Thu Jun 28 10:15:33 2018 +0200
+++ b/cubicweb/web/views/wdoc.py Thu Jun 28 10:38:04 2018 +0200
@@ -23,6 +23,7 @@
from itertools import chain
from os.path import join
+from xml.etree.ElementTree import parse
from six import text_type
@@ -36,11 +37,6 @@
# table of content management #################################################
-try:
- from xml.etree.ElementTree import parse
-except ImportError:
- from elementtree.ElementTree import parse
-
def build_toc_index(node, index):
try: