]> granicus.if.org Git - python/commitdiff
Merged revisions 67467 via svnmerge from
authorGeorg Brandl <georg@python.org>
Mon, 1 Dec 2008 23:02:51 +0000 (23:02 +0000)
committerGeorg Brandl <georg@python.org>
Mon, 1 Dec 2008 23:02:51 +0000 (23:02 +0000)
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r67467 | benjamin.peterson | 2008-12-01 13:52:51 +0100 (Mon, 01 Dec 2008) | 1 line

  let people using SVN Sphinx still build the docs
........

Doc/tools/sphinxext/pyspecific.py

index 9ff9a7a538557d969561cb3118e29a033316506d..185fffb60d34f136500f8751ebe782ca90291778 100644 (file)
@@ -46,7 +46,11 @@ from pprint import pformat
 from docutils.io import StringOutput
 from docutils.utils import new_document
 from sphinx.builder import Builder
-from sphinx.writers.text import TextWriter
+
+try:
+    from sphinx.writers.text import TextWriter
+except ImportError:
+    from sphinx.textwriter import TextWriter
 
 class PydocTopicsBuilder(Builder):
     name = 'pydoc-topics'