Replace use of six.text_type with str

This removes the last use of the six package allowing Sphinx to remove
it as a dependency.
This commit is contained in:
Jon Dufresne
2018-12-15 20:13:28 -08:00
parent 4405366e22
commit 6978918ffc
30 changed files with 108 additions and 177 deletions

View File

@@ -12,7 +12,6 @@ import time
from io import StringIO
import pytest
from six import text_type
from sphinx import application
from sphinx.cmd import quickstart as qs
@@ -35,7 +34,6 @@ def mock_input(answers, needanswer=False):
raise AssertionError('answer for %r missing and no default '
'present' % prompt)
called.add(prompt)
prompt = text_type(prompt)
for question in answers:
if prompt.startswith(qs.PROMPT_PREFIX + question):
return answers[question]