diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-20 19:50:08 -0800 |
|---|---|---|
| committer | Jon Dufresne <jon.dufresne@gmail.com> | 2018-11-21 06:47:15 -0800 |
| commit | b8631079bfac00c7823b25990105b85a180208b4 (patch) | |
| tree | c579987fbf4d5cee55ba32b9f4166af0365486e1 /sphinx/testing/util.py | |
| parent | c4df9b5de2f57387a23ec5b28f74b5e760040dd6 (diff) | |
| download | sphinx-git-b8631079bfac00c7823b25990105b85a180208b4.tar.gz | |
Replace six.string_types with native str
Diffstat (limited to 'sphinx/testing/util.py')
| -rw-r--r-- | sphinx/testing/util.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/testing/util.py b/sphinx/testing/util.py index 1f575569a..cb2d9da4a 100644 --- a/sphinx/testing/util.py +++ b/sphinx/testing/util.py @@ -16,7 +16,6 @@ from xml.etree import ElementTree from docutils import nodes from docutils.parsers.rst import directives, roles -from six import string_types from sphinx import application, locale from sphinx.builders.latex import LaTeXBuilder @@ -74,7 +73,7 @@ def assert_node(node, cls=None, xpath="", **kwargs): for i, nodecls in enumerate(cls): path = xpath + "[%d]" % i assert_node(node[i], nodecls, xpath=path, **kwargs) - elif isinstance(cls, string_types): + elif isinstance(cls, str): assert node == cls, 'The node %r is not %r: %r' % (xpath, cls, node) else: assert isinstance(node, cls), \ |
