introduce the six module and reduce sphinx.util.pycompat implementation. refs #1350.

This commit is contained in:
Takayuki Shimizukawa
2014-04-29 11:46:47 +09:00
parent 1e4b390b22
commit 68290a266c
38 changed files with 142 additions and 137 deletions

View File

@@ -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: