Skip to content

Commit 902efcc

Browse files
authored
🐛 FIX: Remove not imported top-level package docutils (#21)
Plus applied some isort-like manual grouping of imports.
1 parent 640d66b commit 902efcc

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

sphinx_thebe/__init__.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
"""A small sphinx extension to add "copy" buttons to code blocks."""
2+
3+
import json
24
import os
3-
from sphinx.util import logging
5+
from pathlib import Path
6+
47
from docutils.parsers.rst import Directive, directives
58
from docutils import nodes
6-
import json
7-
8-
from pathlib import Path
9+
from sphinx.util import logging
910

1011
__version__ = "0.0.8dev0"
1112

@@ -179,7 +180,7 @@ def visit_element_html(self, node):
179180

180181
# Used for nodes that do not need to be rendered
181182
def skip(self, node):
182-
raise docutils.nodes.SkipNode
183+
raise nodes.SkipNode
183184

184185

185186
def setup(app):

0 commit comments

Comments
 (0)