Skip to content

Commit

Permalink
docs: kernel_include.py: Fix build with docutils 0.21.1
Browse files Browse the repository at this point in the history
Recent docutils removed `reprunicode`, which was used to remove the
leading `u` from the repr output of Python 2's `unicode` type. For
Python 3, `reprunicode` was just an alias for `str`.

Signed-off-by: Jan Alexander Steffens (heftig) <[email protected]>
  • Loading branch information
heftig committed Apr 17, 2024
1 parent a0ebd72 commit 9e841b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Documentation/sphinx/kernel_include.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def _run(self):
# HINT: this is the only line I had to change / commented out:
#path = utils.relative_path(None, path)

path = nodes.reprunicode(path)
path = str(path)
encoding = self.options.get(
'encoding', self.state.document.settings.input_encoding)
e_handler=self.state.document.settings.input_encoding_error_handler
Expand Down

0 comments on commit 9e841b3

Please sign in to comment.