use new sphinx modules

This commit is contained in:
Benjamin Peterson 2009-01-08 04:01:00 +00:00
parent 35b345484d
commit 1a67f589c6
2 changed files with 3 additions and 9 deletions

View File

@ -48,15 +48,9 @@ from pprint import pformat
from docutils.io import StringOutput
from docutils.utils import new_document
try:
from sphinx.builders import Builder
except ImportError:
from sphinx.builder import Builder
try:
from sphinx.writers.text import TextWriter
except ImportError:
from sphinx.textwriter import TextWriter
class PydocTopicsBuilder(Builder):
name = 'pydoc-topics'

View File

@ -45,7 +45,7 @@ import os, sys
import csv
import re
from docutils import nodes
from sphinx.builder import Builder
from sphinx.builders import Builder
detect_all = re.compile(ur'''
::(?=[^=])| # two :: (but NOT ::=)