Skip to content

Commit

Permalink
starting with sphinx 7.2.0, root is a pathlib.Path not a string anymore
Browse files Browse the repository at this point in the history
so convert it to a string, the trailing os.sep is not needed.
os.path.join which is used to join paths, expects string and inserts the
os.sep.

See-also: sphinx-doc/sphinx#11526
See-also: sphinx-doc/sphinx#11608

Signed-off-by: Martin Gysel <me@bearsh.org>
  • Loading branch information
bearsh committed Aug 22, 2023
1 parent 0941e1b commit 1293e18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/sphinxtogithub/sphinxtogithub.py
Expand Up @@ -97,7 +97,7 @@ class DirectoryHandler:
def __init__(self, name, root, renamer):
self.name = name
self.new_name = name[1:]
self.root = root + os.sep
self.root = str(root)
self.renamer = renamer

def path(self):
Expand Down

0 comments on commit 1293e18

Please sign in to comment.