summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
authorTakayuki Shimizukawa <shimizukawa@gmail.com>2014-04-30 21:30:46 +0900
committerTakayuki Shimizukawa <shimizukawa@gmail.com>2014-04-30 21:30:46 +0900
commit1e5806269243d5d10bb4f1421b9b5448963e704a (patch)
tree10eb2c9270c8dc73156fafdcdb4c6d04fe441f44 /sphinx/highlighting.py
parentf31d9113ffc1c58bfcc47f2a29439102b62801fc (diff)
downloadsphinx-git-1e5806269243d5d10bb4f1421b9b5448963e704a.tar.gz
remove 'six' name except importing line.
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