Skip to content

Commit b3ed89b

Browse files
committed
Use os.PathLike over pathlib.Path
Sphinx 7.1 and earlier don't use ``pathlib`` internally.
1 parent 957d087 commit b3ed89b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxcontrib/serializinghtml/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ def handle_page(self, pagename: str, ctx: dict, templatename: str = 'page.html',
102102

103103
def handle_finish(self) -> None:
104104
# dump the global context
105-
outfilename = self.outdir / self.globalcontext_filename
105+
outfilename = path.join(self.outdir, self.globalcontext_filename)
106106
self.dump_context(self.globalcontext, outfilename)
107107

108108
# super here to dump the search index

0 commit comments

Comments
 (0)