summaryrefslogtreecommitdiff
path: root/sphinx/environment/collectors/indexentries.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/environment/collectors/indexentries.py')
-rw-r--r--sphinx/environment/collectors/indexentries.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/sphinx/environment/collectors/indexentries.py b/sphinx/environment/collectors/indexentries.py
index 5ab309407..27d2c771b 100644
--- a/sphinx/environment/collectors/indexentries.py
+++ b/sphinx/environment/collectors/indexentries.py
@@ -8,8 +8,6 @@
:license: BSD, see LICENSE for details.
"""
-from six import text_type
-
from sphinx import addnodes
from sphinx.environment.collectors import EnvironmentCollector
from sphinx.util import split_index_msg, logging
@@ -45,7 +43,7 @@ class IndexEntriesCollector(EnvironmentCollector):
for entry in node['entries']:
split_index_msg(entry[0], entry[1])
except ValueError as exc:
- logger.warning(text_type(exc), location=node)
+ logger.warning(str(exc), location=node)
node.parent.remove(node)
else:
for entry in node['entries']: