File: fix-path-to-Directive-python-module.patch

package info (click to toggle)
python-sphinxcontrib.plantuml 0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 140 kB
  • sloc: python: 279; makefile: 12
file content (20 lines) | stat: -rw-r--r-- 691 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix path to Directive python module
Author: Thomas Goirand <zigo@debian.org>
Bug-Debian: https://bugs.debian.org/896312
Forwarded: no
Last-Update: 2018-04-25

--- python-sphinxcontrib.plantuml-0.5.orig/sphinxcontrib/plantuml.py
+++ python-sphinxcontrib.plantuml-0.5/sphinxcontrib/plantuml.py
@@ -16,7 +16,10 @@ except ImportError:  # Python<2.5
 from docutils import nodes
 from docutils.parsers.rst import directives
 from sphinx.errors import SphinxError
-from sphinx.util.compat import Directive
+try:
+    from sphinx.util.compat import Directive
+except ImportError:
+    from docutils.parsers.rst import Directive
 from sphinx.util.osutil import ensuredir, ENOENT
 
 try: