diff options
author | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-30 21:30:46 +0900 |
---|---|---|
committer | Takayuki Shimizukawa <shimizukawa@gmail.com> | 2014-04-30 21:30:46 +0900 |
commit | 1e5806269243d5d10bb4f1421b9b5448963e704a (patch) | |
tree | 10eb2c9270c8dc73156fafdcdb4c6d04fe441f44 /sphinx/highlighting.py | |
parent | f31d9113ffc1c58bfcc47f2a29439102b62801fc (diff) | |
download | sphinx-git-1e5806269243d5d10bb4f1421b9b5448963e704a.tar.gz |
remove 'six' name except importing line.
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r-- | sphinx/highlighting.py | 5 |
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 |