[wdoc] Remove fallback about xml.etree module 3.26
authorDenis Laxalde <denis.laxalde@logilab.fr>
Thu, 28 Jun 2018 10:38:04 +0200
branch3.26
changeset 12332 45f9d93bba71
parent 12331 3cddf6a5473a
child 12333 1693730548ef
[wdoc] Remove fallback about xml.etree module Module xml.etree exists since python 2.5.
cubicweb/web/views/wdoc.py
--- 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: