summaryrefslogtreecommitdiff
path: root/sphinx/highlighting.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-28 01:52:16 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-01-28 01:52:16 +0900
commit9f5c676322200f0402a32873ba6cac6c6a0ff680 (patch)
tree9989917ae2b81c254a4b649e67c952b47ce8cf2a /sphinx/highlighting.py
parentaf25fa123d2d2cf0ea8073b61120f5205f07deb8 (diff)
downloadsphinx-git-9f5c676322200f0402a32873ba6cac6c6a0ff680.tar.gz
Use flake8-import-order
Diffstat (limited to 'sphinx/highlighting.py')
-rw-r--r--sphinx/highlighting.py19
1 files changed, 9 insertions, 10 deletions
diff --git a/sphinx/highlighting.py b/sphinx/highlighting.py
index eef24ee95..ac1d1118e 100644
--- a/sphinx/highlighting.py
+++ b/sphinx/highlighting.py
@@ -9,23 +9,22 @@
:license: BSD, see LICENSE for details.
"""
-from six import text_type
-
-from sphinx.util import logging
-from sphinx.util.pycompat import htmlescape
-from sphinx.util.texescape import tex_hl_escape_map_new
-from sphinx.ext import doctest
-
from pygments import highlight
+from pygments.filters import ErrorToken
+from pygments.formatters import HtmlFormatter, LatexFormatter
from pygments.lexer import Lexer # NOQA
+from pygments.lexers import get_lexer_by_name, guess_lexer
from pygments.lexers import PythonLexer, Python3Lexer, PythonConsoleLexer, \
CLexer, TextLexer, RstLexer
-from pygments.lexers import get_lexer_by_name, guess_lexer
-from pygments.formatters import HtmlFormatter, LatexFormatter
-from pygments.filters import ErrorToken
from pygments.styles import get_style_by_name
from pygments.util import ClassNotFound
+from six import text_type
+
+from sphinx.ext import doctest
from sphinx.pygments_styles import SphinxStyle, NoneStyle
+from sphinx.util import logging
+from sphinx.util.pycompat import htmlescape
+from sphinx.util.texescape import tex_hl_escape_map_new
if False:
# For type annotation