And add the patch too# with '#' will be ignored, and an empty message aborts the commit.
This commit is contained in:
parent
c1158f4aa6
commit
b2adc5cbc5
18
docutils-0.9.1-pyxml.patch
Normal file
18
docutils-0.9.1-pyxml.patch
Normal file
@ -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):
|
Loading…
Reference in New Issue
Block a user