From: Vladimír Vondruš Date: Wed, 21 Aug 2024 10:19:13 +0000 (+0200) Subject: m.code: reprunicode() is also gone in docutils 0.21. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~cjwatson/git?a=commitdiff_plain;h=b8206e2f79f1fac82b4e34189b77da17646341ec;p=blog.git m.code: reprunicode() is also gone in docutils 0.21. 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> --- diff --git a/plugins/m/code.py b/plugins/m/code.py index 031bce58..43d49de0 100644 --- a/plugins/m/code.py +++ b/plugins/m/code.py @@ -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)