From 1c6218ccf325acc4d4783ecb0f821b49db9588d4 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 b0d388e..309b657 100644 --- a/sphinxtogithub/sphinxtogithub.py +++ b/sphinxtogithub/sphinxtogithub.py @@ -103,7 +103,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):