chiark / gitweb /
m.code: reprunicode() is also gone in docutils 0.21.
authorVladimír Vondruš <mosra@centrum.cz>
Wed, 21 Aug 2024 10:19:13 +0000 (12:19 +0200)
committerVladimír Vondruš <mosra@centrum.cz>
Wed, 21 Aug 2024 11:54:54 +0000 (13:54 +0200)
Their changelog says it was there just for compatibility with Python 2,
which m.css never supported anyway.

Co-authored-by: John Turner <7strbass@gmail.com>
plugins/m/code.py

index 031bce58fa5e2bad504a9986284f2f55b0d7a963..43d49de0798102e758b6ccf7b9864c3487c51309 100644 (file)
@@ -187,7 +187,6 @@ class Include(docutils.parsers.rst.directives.misc.Include):
             path = os.path.join(self.standard_include_path, path[1:-1])
         path = os.path.normpath(os.path.join(source_dir, path))
         path = utils.relative_path(None, path)
-        path = nodes.reprunicode(path)
         e_handler=self.state.document.settings.input_encoding_error_handler
         tab_width = self.options.get(
             'tab-width', self.state.document.settings.tab_width)