mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
silence annoying DeprecationWarning
This commit is contained in:
parent
bd1ede68c5
commit
a2813c9882
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue