Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75413 - trunk/libs/python/pyste/src/Pyste
From: rwgk_at_[hidden]
Date: 2011-11-08 16:16:30


Author: rwgk
Date: 2011-11-08 16:16:29 EST (Tue, 08 Nov 2011)
New Revision: 75413
URL: http://svn.boost.org/trac/boost/changeset/75413

Log:
libs/python/pyste/src/Pyste/GCCXMLParser.py: applying python2.5-elementtree.patch from Trac Ticket #2208
Text files modified:
   trunk/libs/python/pyste/src/Pyste/GCCXMLParser.py | 12 ++++++++----
   1 files changed, 8 insertions(+), 4 deletions(-)

Modified: trunk/libs/python/pyste/src/Pyste/GCCXMLParser.py
==============================================================================
--- trunk/libs/python/pyste/src/Pyste/GCCXMLParser.py (original)
+++ trunk/libs/python/pyste/src/Pyste/GCCXMLParser.py 2011-11-08 16:16:29 EST (Tue, 08 Nov 2011)
@@ -4,12 +4,16 @@
 # http://www.boost.org/LICENSE_1_0.txt)
 
 from declarations import *
-# try to use cElementTree if avaiable
 try:
- from cElementTree import ElementTree
+ # try to use internal elementtree
+ from xml.etree.cElementTree import ElementTree
 except ImportError:
- # fall back to the normal elementtree
- from elementtree.ElementTree import ElementTree
+ # try to use cElementTree if avaiable
+ try:
+ from cElementTree import ElementTree
+ except ImportError:
+ # fall back to the normal elementtree
+ from elementtree.ElementTree import ElementTree
 from xml.parsers.expat import ExpatError
 from copy import deepcopy
 from utils import enumerate


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk