We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 49e8699 commit fa24dbbCopy full SHA for fa24dbb
1 file changed
pyste/src/Pyste/GCCXMLParser.py
@@ -4,12 +4,16 @@
4
# http://www.boost.org/LICENSE_1_0.txt)
5
6
from declarations import *
7
-# try to use cElementTree if avaiable
8
try:
9
- from cElementTree import ElementTree
+ # try to use internal elementtree
+ from xml.etree.cElementTree import ElementTree
10
except ImportError:
11
- # fall back to the normal elementtree
12
- from elementtree.ElementTree import ElementTree
+ # try to use cElementTree if avaiable
+ try:
13
+ from cElementTree import ElementTree
14
+ except ImportError:
15
+ # fall back to the normal elementtree
16
+ from elementtree.ElementTree import ElementTree
17
from xml.parsers.expat import ExpatError
18
from copy import deepcopy
19
from utils import enumerate
0 commit comments