diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-09 12:06:35 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-22 17:54:20 +0900 |
commit | fef9f870d40481c042e1d1f6bda38a1ca009a973 (patch) | |
tree | e17aa3b7bc9a1ae5505931bcdd1586296f7de135 /sphinx/util/websupport.py | |
parent | 45887c7d62dde461f2741f1cb9e2cc1ca26a42dd (diff) | |
download | sphinx-git-fef9f870d40481c042e1d1f6bda38a1ca009a973.tar.gz |
Split websupport to sphinxcontrib-websupport package
Diffstat (limited to 'sphinx/util/websupport.py')
-rw-r--r-- | sphinx/util/websupport.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sphinx/util/websupport.py b/sphinx/util/websupport.py index b9a76e5c5..20a35cf69 100644 --- a/sphinx/util/websupport.py +++ b/sphinx/util/websupport.py @@ -7,12 +7,4 @@ :license: BSD, see LICENSE for details. """ -if False: - # For type annotation - from docutils import nodes # NOQA - - -def is_commentable(node): - # type: (nodes.Node) -> bool - # return node.__class__.__name__ in ('paragraph', 'literal_block') - return node.__class__.__name__ == 'paragraph' +from sphinxcontrib.websupport.utils import is_commentable # NOQA |