diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-12-20 23:48:54 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-12-20 23:48:54 (GMT) |
commit | a2813c98822acd3b2a9091b36cd0ddb6086a2032 (patch) | |
tree | d13cbdfd31b587a47182a75e9fb9634a3645b7a3 | |
parent | bd1ede68c5cb9e5b430c4d2a9bbf146d302b328f (diff) | |
download | cpython-a2813c98822acd3b2a9091b36cd0ddb6086a2032.zip cpython-a2813c98822acd3b2a9091b36cd0ddb6086a2032.tar.gz cpython-a2813c98822acd3b2a9091b36cd0ddb6086a2032.tar.bz2 |
silence annoying DeprecationWarning
-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 00190f2..d389243 100644 --- a/Doc/tools/sphinxext/pyspecific.py +++ b/Doc/tools/sphinxext/pyspecific.py @@ -47,7 +47,11 @@ from time import asctime from pprint import pformat from docutils.io import StringOutput from docutils.utils import new_document -from sphinx.builder import Builder + +try: + from sphinx.builders import Builder +except ImportError: + from sphinx.builder import Builder try: from sphinx.writers.text import TextWriter |