diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-12-01 12:52:51 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-12-01 12:52:51 (GMT) |
commit | cb948f12c9c9652fb44604d21ac6ef1d7645e05c (patch) | |
tree | 6a2eb0dcd5aee167de9f7d170d9f7221f7615e9e | |
parent | 4d756afd68f483db6b32599d5e7a052fcdb28287 (diff) | |
download | cpython-cb948f12c9c9652fb44604d21ac6ef1d7645e05c.zip cpython-cb948f12c9c9652fb44604d21ac6ef1d7645e05c.tar.gz cpython-cb948f12c9c9652fb44604d21ac6ef1d7645e05c.tar.bz2 |
let people using SVN Sphinx still build the docs
-rw-r--r-- | Doc/tools/sphinxext/pyspecific.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Doc/tools/sphinxext/pyspecific.py b/Doc/tools/sphinxext/pyspecific.py index 22ecaa2..00190f2 100644 --- a/Doc/tools/sphinxext/pyspecific.py +++ b/Doc/tools/sphinxext/pyspecific.py @@ -48,7 +48,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' |