summaryrefslogtreecommitdiff
path: root/sphinx/builders/websupport.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-30 01:04:30 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-04-30 01:04:30 +0900
commitb9b982d5f0885995f56db967d407a6163f280050 (patch)
treeded28c328908465eed3bc5d5111efc8166157995 /sphinx/builders/websupport.py
parent4de4fd060a866e31adc5135a421418ba4e825fc4 (diff)
downloadsphinx-git-b9b982d5f0885995f56db967d407a6163f280050.tar.gz
Fix dependency errors
Diffstat (limited to 'sphinx/builders/websupport.py')
-rw-r--r--sphinx/builders/websupport.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/sphinx/builders/websupport.py b/sphinx/builders/websupport.py
index a1b6cdb2d..2e416b287 100644
--- a/sphinx/builders/websupport.py
+++ b/sphinx/builders/websupport.py
@@ -9,8 +9,6 @@
:license: BSD, see LICENSE for details.
"""
-from sphinxcontrib.websupport.builder import WebSupportBuilder
-
if False:
# For type annotation
from typing import Any, Dict # NOQA
@@ -19,7 +17,11 @@ if False:
def setup(app):
# type: (Sphinx) -> Dict[unicode, Any]
- app.add_builder(WebSupportBuilder)
+ try:
+ from sphinxcontrib.websupport.builder import WebSupportBuilder
+ app.add_builder(WebSupportBuilder)
+ except ImportError:
+ pass
return {
'version': 'builtin',