[python-docutils] And add the patch too# with '#' will be ignored, and an empty message aborts the commit.

Toshio くらとみ toshio at fedoraproject.org
Tue Jul 31 05:24:10 UTC 2012


commit b2adc5cbc503fa6fa4f4499bbbee1e3b20afe1c6
Author: Toshio Kuratomi <toshio at fedoraproject.org>
Date:   Mon Jul 30 22:23:55 2012 -0700

    And add the patch too# with '#' will be ignored, and an empty message aborts the commit.

 docutils-0.9.1-pyxml.patch |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
---
diff --git a/docutils-0.9.1-pyxml.patch b/docutils-0.9.1-pyxml.patch
new file mode 100644
index 0000000..97092c3
--- /dev/null
+++ b/docutils-0.9.1-pyxml.patch
@@ -0,0 +1,18 @@
+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):


More information about the scm-commits mailing list