Skip to content

Commit fa24dbb

Browse files
author
Ralf W. Grosse-Kunstleve
committed
merging current boost/python and libs/python from trunk into release branch
[SVN r75414]
1 parent 49e8699 commit fa24dbb

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

pyste/src/Pyste/GCCXMLParser.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
# http://www.boost.org/LICENSE_1_0.txt)
55

66
from declarations import *
7-
# try to use cElementTree if avaiable
87
try:
9-
from cElementTree import ElementTree
8+
# try to use internal elementtree
9+
from xml.etree.cElementTree import ElementTree
1010
except ImportError:
11-
# fall back to the normal elementtree
12-
from elementtree.ElementTree import ElementTree
11+
# try to use cElementTree if avaiable
12+
try:
13+
from cElementTree import ElementTree
14+
except ImportError:
15+
# fall back to the normal elementtree
16+
from elementtree.ElementTree import ElementTree
1317
from xml.parsers.expat import ExpatError
1418
from copy import deepcopy
1519
from utils import enumerate

0 commit comments

Comments
 (0)