summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r--sphinx/highlighting.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py
index 818705b26..599a76a90 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -18,8 +18,7 @@ except ImportError:
# parser is not available on Jython
parser = None
-import six
-from six import text_type
+from six import PY2, text_type
from sphinx.util.pycompat import htmlescape
from sphinx.util.texescape import tex_hl_escape_map_new
@@ -133,7 +132,7 @@ class PygmentsBridge(object):
# lines beginning with "..." are probably placeholders for suite
src = re.sub(r"(?m)^(\s*)" + mark + "(.)", r"\1"+ mark + r"# \2", src)
- if six.PY2 and isinstance(src, text_type):
+ if PY2 and isinstance(src, text_type):
# Non-ASCII chars will only occur in string literals
# and comments. If we wanted to give them to the parser
# correctly, we'd have to find out the correct source