Skip to content

Commit 1293e18

Browse files
committed
starting with sphinx 7.2.0, root is a pathlib.Path not a string anymore
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>
1 parent 0941e1b commit 1293e18

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extras/sphinxtogithub/sphinxtogithub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class DirectoryHandler:
9797
def __init__(self, name, root, renamer):
9898
self.name = name
9999
self.new_name = name[1:]
100-
self.root = root + os.sep
100+
self.root = str(root)
101101
self.renamer = renamer
102102

103103
def path(self):

0 commit comments

Comments
 (0)