Blob Blame History Raw
diff -up docutils-0.10/docutils/__init__.py.bak docutils-0.10/docutils/__init__.py
--- docutils-0.10/docutils/__init__.py.bak	2012-07-30 21:10:28.157575978 -0700
+++ docutils-0.10/docutils/__init__.py	2012-07-30 21:15:54.367394309 -0700
@@ -63,6 +63,14 @@ __version_details__ = 'repository'
 """Extra version details (e.g. 'snapshot 2005-05-29, r3410', 'repository',
 'release'), modified automatically & manually."""
 
+# Work around broken PyXML and dubious python stdlib behaviour (The stdlib
+# replaces its own xml module with PyXML if PyXML is installed.)
+# This reverses the order that the xml module and submodules are searched --
+# it finds the stdlib modules first if they exist and then the PyXML modules
+# if they didn't exist in the stdlib.
+import xml
+xml.__path__.reverse() # If both are available, prefer stdlib over PyXML
+
 import sys
 
 class ApplicationError(StandardError):