diff options
author | Oliver Faso <erer1243@gmail.com> | 2023-09-10 00:08:06 -0400 |
---|---|---|
committer | Jonathan Corbet <corbet@lwn.net> | 2023-10-10 13:35:54 -0600 |
commit | f00c19c67a49f683e6a3aa19f546c37cf9344508 (patch) | |
tree | 26af4eb369d0e327c66b0eac6a2daabda6f0a44f /Documentation/sphinx/kfigure.py | |
parent | 3240c37567cccc5f3b08d96bf7ecd3b287da9ec0 (diff) |
docs/sphinx: Explicitly convert Sphinx paths to str
Sphinx 7.2+ is switching to using pathlib.Path
instead of str to represent paths. This fixes the
current deprecation warnings and eventual breakage.
This conversion will be a no-op when using older
Sphinx versions.
Signed-off-by: Oliver Faso <erer1243@gmail.com>
Tested-by: Akira Yokosawa <akiyks@gmail.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Link: https://lore.kernel.org/r/20230910040811.53046-1-erer1243@gmail.com
Diffstat (limited to 'Documentation/sphinx/kfigure.py')
-rw-r--r-- | Documentation/sphinx/kfigure.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/sphinx/kfigure.py b/Documentation/sphinx/kfigure.py index cefdbb7e7523..13e885bbd499 100644 --- a/Documentation/sphinx/kfigure.py +++ b/Documentation/sphinx/kfigure.py @@ -309,7 +309,7 @@ def convert_image(img_node, translator, src_fname=None): if dst_fname: # the builder needs not to copy one more time, so pop it if exists. translator.builder.images.pop(img_node['uri'], None) - _name = dst_fname[len(translator.builder.outdir) + 1:] + _name = dst_fname[len(str(translator.builder.outdir)) + 1:] if isNewer(dst_fname, src_fname): kernellog.verbose(app, |