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>
(cherry picked from commit 1293e18)
  • Loading branch information
bearsh authored and davvid committed Aug 24, 2023
1 parent 4c640dd commit 7657ad5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extras/sphinxtogithub/sphinxtogithub.py
Expand Up @@ -98,7 +98,7 @@ class DirectoryHandler(object):
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 7657ad5

Please sign in to comment.