From 1293e189ee79703e23870f37feda61b44f635a98 Mon Sep 17 00:00:00 2001 From: Martin Gysel Date: Tue, 22 Aug 2023 20:26:28 +0200 Subject: [PATCH] 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 --- extras/sphinxtogithub/sphinxtogithub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extras/sphinxtogithub/sphinxtogithub.py b/extras/sphinxtogithub/sphinxtogithub.py index 8e88939ec..2f3da9058 100644 --- a/extras/sphinxtogithub/sphinxtogithub.py +++ b/extras/sphinxtogithub/sphinxtogithub.py @@ -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):