let people using SVN Sphinx still build the docs
This commit is contained in:
parent
4d756afd68
commit
cb948f12c9
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue