* [gentoo-commits] gentoo-x86 commit in dev-python/rst2pdf/files: rst2pdf-0.16_docutils-0.8.patch
@ 2011-07-30 4:39 Rafael Martins (rafaelmartins)
0 siblings, 0 replies; 2+ messages in thread
From: Rafael Martins (rafaelmartins) @ 2011-07-30 4:39 UTC (permalink / raw
To: gentoo-commits
rafaelmartins 11/07/30 04:39:43
Added: rst2pdf-0.16_docutils-0.8.patch
Log:
Revision bump. Fixed runtime errors when using >=docutils-0.8 (bug #369943).
(Portage version: 2.2.0_alpha46/cvs/Linux x86_64)
Revision Changes Path
1.1 dev-python/rst2pdf/files/rst2pdf-0.16_docutils-0.8.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/rst2pdf/files/rst2pdf-0.16_docutils-0.8.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-python/rst2pdf/files/rst2pdf-0.16_docutils-0.8.patch?rev=1.1&content-type=text/plain
Index: rst2pdf-0.16_docutils-0.8.patch
===================================================================
Index: rst2pdf/createpdf.py
===================================================================
--- rst2pdf/createpdf.py (revision 2441)
+++ rst2pdf/createpdf.py (working copy)
@@ -56,6 +56,7 @@
from optparse import OptionParser
import logging
+import docutils
from docutils.languages import get_language
import docutils.readers.doctree
import docutils.core
@@ -97,6 +98,12 @@
escape=tenjin.helpers.escape
templateEngine=tenjin.Engine()
+# fix get_language for docutils>=0.8
+if docutils.__version__ >= '0.8':
+ orig_func = get_language
+ def get_language(arg1):
+ return orig_func(arg1, None)
+
def renderTemplate(tname, **context):
context['to_str']=to_str
context['escape']=escape
Index: rst2pdf/pdfbuilder.py
===================================================================
--- rst2pdf/pdfbuilder.py (revision 2441)
+++ rst2pdf/pdfbuilder.py (working copy)
@@ -27,6 +27,7 @@
from rst2pdf import pygments_code_block_directive, oddeven_directive
from pygments.lexers import get_lexer_by_name, guess_lexer
+import docutils
from docutils import writers
from docutils import nodes
from docutils import languages
@@ -56,7 +57,14 @@
from traceback import print_exc
+# fix get_language for docutils>=0.8
+if docutils.__version__ >= '0.8':
+ orig_func = get_language
+ def get_language(arg1):
+ return orig_func(arg1, None)
+ languages.get_language = get_language
+
class PDFBuilder(Builder):
name = 'pdf'
out_suffix = '.pdf'
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-commits] gentoo-x86 commit in dev-python/rst2pdf/files: rst2pdf-0.16_docutils-0.8.patch
@ 2014-12-13 11:35 Pacho Ramos (pacho)
0 siblings, 0 replies; 2+ messages in thread
From: Pacho Ramos (pacho) @ 2014-12-13 11:35 UTC (permalink / raw
To: gentoo-commits
pacho 14/12/13 11:35:18
Removed: rst2pdf-0.16_docutils-0.8.patch
Log:
Drop old
(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-12-13 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-13 11:35 [gentoo-commits] gentoo-x86 commit in dev-python/rst2pdf/files: rst2pdf-0.16_docutils-0.8.patch Pacho Ramos (pacho)
-- strict thread matches above, loose matches on Subject: below --
2011-07-30 4:39 Rafael Martins (rafaelmartins)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox