summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-10-27 19:12:47 +0100
committerGeorg Brandl <georg@python.org>2009-10-27 19:12:47 +0100
commit414816bb373379cf1ca8f4b6ef21a329fff1270f (patch)
treedddbf6ed6f356aa7d65e7f759140f311dc18d88c /sphinx/directives/code.py
parentf98a703ef3572ef7b4260405d0716fb60f6e01b0 (diff)
downloadsphinx-git-414816bb373379cf1ca8f4b6ef21a329fff1270f.tar.gz
Remove docutils 0.4 support.
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r--sphinx/directives/code.py13
1 files changed, 6 insertions, 7 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py
index 4f44c3335..fc4a1873f 100644
--- a/sphinx/directives/code.py
+++ b/sphinx/directives/code.py
@@ -13,11 +13,10 @@ import codecs
from os import path
from docutils import nodes
-from docutils.parsers.rst import directives
+from docutils.parsers.rst import Directive, directives
from sphinx import addnodes
from sphinx.util import parselinenos
-from sphinx.util.compat import Directive, directive_dwim
class Highlight(Directive):
@@ -184,8 +183,8 @@ class LiteralInclude(Directive):
return [retnode]
-directives.register_directive('highlight', directive_dwim(Highlight))
-directives.register_directive('highlightlang', directive_dwim(Highlight)) # old
-directives.register_directive('code-block', directive_dwim(CodeBlock))
-directives.register_directive('sourcecode', directive_dwim(CodeBlock))
-directives.register_directive('literalinclude', directive_dwim(LiteralInclude))
+directives.register_directive('highlight', Highlight)
+directives.register_directive('highlightlang', Highlight) # old
+directives.register_directive('code-block', CodeBlock)
+directives.register_directive('sourcecode', CodeBlock)
+directives.register_directive('literalinclude', LiteralInclude)