Skip to content

Commit

Permalink
sphinx1.7+: ImportError workaround, allows to see help
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Zubov committed Dec 5, 2019
1 parent 0b56210 commit 13272ee
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion sphinxcontrib/versioning/sphinx_.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
import os
import sys

from sphinx import application, build_main, locale
from sphinx import application, locale

try:
from sphinx import build_main
except ImportError:
# Python 3.6+ ImportError fix
from sphinx.cmd.build import build_main

from sphinx.builders.html import StandaloneHTMLBuilder
from sphinx.config import Config as SphinxConfig
from sphinx.errors import SphinxError
Expand Down

0 comments on commit 13272ee

Please sign in to comment.