From 5915ab289656cf342a873fdd5d3f6ea735d39a91 Mon Sep 17 00:00:00 2001 From: David Aguilar Date: Wed, 23 Aug 2023 01:28:55 -0700 Subject: [PATCH] sphinxtogithub: add support for Sphinx 7.2.0 Newer versions of sphinx use a pathlib.Path object instead of a string for the "root" parameter. Add compatibility by stringifying the value provided by Sphinx. See-also: sphinx-doc/sphinx#11526 See-also: sphinx-doc/sphinx#11608 See-also: git-cola/git-cola#1336 Original-patch-by: Martin Gysel --- sphinxtogithub/sphinxtogithub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinxtogithub/sphinxtogithub.py b/sphinxtogithub/sphinxtogithub.py index 4d0b830..a31578a 100644 --- a/sphinxtogithub/sphinxtogithub.py +++ b/sphinxtogithub/sphinxtogithub.py @@ -107,7 +107,7 @@ def __init__(self, name, root, renamer): self.name = name self.new_name = name[1:] - self.root = root + os.sep + self.root = str(root) + os.sep self.renamer = renamer def path(self):