diff options
author | François Freitag <mail@franek.fr> | 2020-11-11 12:00:27 +0100 |
---|---|---|
committer | François Freitag <mail@franek.fr> | 2020-11-11 13:19:05 +0100 |
commit | 0949735210abaa05b6448e531984f159403053f4 (patch) | |
tree | 3561f378bc9fa97a73ad5b298e4bcd669827a044 /sphinx/writers/manpage.py | |
parent | e2c969c4955662a8c5e4da8b77672aaaa7729359 (diff) | |
download | sphinx-git-0949735210abaa05b6448e531984f159403053f4.tar.gz |
Sort imports with isort
Keep imports alphabetically sorted and their order homogeneous across
Python source files.
The isort project has more feature and is more active than the
flake8-import-order plugin.
Most issues caught were simply import ordering from the same module.
Where imports were purposefully placed out of order, tag with
isort:skip.
Diffstat (limited to 'sphinx/writers/manpage.py')
-rw-r--r-- | sphinx/writers/manpage.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sphinx/writers/manpage.py b/sphinx/writers/manpage.py index 7da2f4e8f..c8593c6e8 100644 --- a/sphinx/writers/manpage.py +++ b/sphinx/writers/manpage.py @@ -9,26 +9,22 @@ """ import warnings -from typing import Any, Dict, Iterable -from typing import cast +from typing import Any, Dict, Iterable, cast from docutils import nodes from docutils.nodes import Element, Node, TextElement -from docutils.writers.manpage import ( - Writer, - Translator as BaseTranslator -) +from docutils.writers.manpage import Translator as BaseTranslator +from docutils.writers.manpage import Writer from sphinx import addnodes from sphinx.builders import Builder from sphinx.deprecation import RemovedInSphinx40Warning -from sphinx.locale import admonitionlabels, _ +from sphinx.locale import _, admonitionlabels from sphinx.util import logging from sphinx.util.docutils import SphinxTranslator from sphinx.util.i18n import format_date from sphinx.util.nodes import NodeMatcher - logger = logging.getLogger(__name__) |