mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350.
This commit is contained in:
@@ -8,12 +8,13 @@
|
||||
"""
|
||||
|
||||
import sys
|
||||
import StringIO
|
||||
import tempfile
|
||||
import shutil
|
||||
import re
|
||||
from functools import wraps
|
||||
|
||||
import six
|
||||
|
||||
from sphinx import application
|
||||
from sphinx.theming import Theme
|
||||
from sphinx.ext.autodoc import AutoDirective
|
||||
@@ -162,7 +163,7 @@ class TestApp(application.Sphinx):
|
||||
if confoverrides is None:
|
||||
confoverrides = {}
|
||||
if status is None:
|
||||
status = StringIO.StringIO()
|
||||
status = six.StringIO()
|
||||
if warning is None:
|
||||
warning = ListOutput('stderr')
|
||||
if freshenv is None:
|
||||
|
||||
Reference in New Issue
Block a user