2
0
mirror of https://github.com/boostorg/python.git synced 2026-02-02 21:12:15 +00:00

Quickbook: Merge from trunk to quickbook-dev

[SVN r75739]
This commit is contained in:
Daniel James
2011-11-30 01:35:25 +00:00
parent 6623a7a0ce
commit d140baeeb0

View File

@@ -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