blob: bedf5d3a0fe09e2ff7f11df57248e3098ab9de28 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
--- Ft/Lib/DistExt/BuildDocs.py
+++ Ft/Lib/DistExt/BuildDocs.py
@@ -18,6 +18,10 @@
from distutils.core import Command, DEBUG
from distutils.errors import *
+import xml
+if hasattr(xml, "use_pyxml"):
+ xml.use_pyxml()
+
from Ft import GetConfigVar
from Ft.Lib import Uri, ImportUtil
from Ft.Lib.DistExt import Structures
--- Ft/Lib/DistExt/Util.py
+++ Ft/Lib/DistExt/Util.py
@@ -4,6 +4,9 @@
import sys
from distutils import sysconfig, util
from distutils.errors import DistutilsPlatformError
+import xml
+if hasattr(xml, "use_pyxml"):
+ xml.use_pyxml()
from xml.dom import pulldom
from xml.sax import make_parser
--- Ft/Xml/__init__.py
+++ Ft/Xml/__init__.py
@@ -170,6 +170,9 @@
import Ft.Xml.XUpdate
return XUpdate.ApplyXupdate(*args, **kw_args)
+import xml
+if hasattr(xml, "use_pyxml"):
+ xml.use_pyxml()
from distutils import version
pyxml_required = version.StrictVersion('0.8.0')
|