Skip to content

Commit

Permalink
Fix #5492: sphinx-build fails to build docs w/ Python < 3.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Oct 6, 2018
1 parent e5b8f6a commit 86c48c4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Bugs fixed
----------

* #5490: latex: enumerated list causes a crash with recommonmark
* #5492: sphinx-build fails to build docs w/ Python < 3.5.2

Testing
--------
Expand Down
4 changes: 2 additions & 2 deletions sphinx/transforms/post_transforms/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"""

import warnings
from typing import TYPE_CHECKING

from docutils import nodes
from docutils.writers.docutils_xml import XMLTranslator
Expand All @@ -20,7 +19,8 @@
from sphinx.transforms import SphinxTransform
from sphinx.util import logging

if TYPE_CHECKING:
if False:
# For type annotation
from typing import Any, Callable, Dict, Iterable, List, Tuple # NOQA
from docutils.parsers.rst.states import Inliner # NOQA
from docutils.writers.html4css1 import Writer # NOQA
Expand Down

0 comments on commit 86c48c4

Please sign in to comment.