Skip to content

Commit

Permalink
Merge pull request #5510 from tk0miya/5492_crashed_with_py352
Browse files Browse the repository at this point in the history
Fix #5492: sphinx-build fails to build docs w/ Python < 3.5.2
  • Loading branch information
tk0miya committed Oct 6, 2018
2 parents e5b8f6a + 86c48c4 commit 6ccd53e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES
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
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 6ccd53e

Please sign in to comment.