Skip to content

Commit 1133fc9

Browse files
committed
docs: kernel_include.py: Fix build with docutils 0.21.1
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]>
1 parent e48fc43 commit 1133fc9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/sphinx/kernel_include.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def _run(self):
9797
# HINT: this is the only line I had to change / commented out:
9898
#path = utils.relative_path(None, path)
9999

100-
path = nodes.reprunicode(path)
100+
path = str(path)
101101
encoding = self.options.get(
102102
'encoding', self.state.document.settings.input_encoding)
103103
e_handler=self.state.document.settings.input_encoding_error_handler

0 commit comments

Comments
 (0)