Skip to content

Commit

Permalink
Use os.PathLike over pathlib.Path
Browse files Browse the repository at this point in the history
Sphinx 7.1 and earlier don't use ``pathlib`` internally.
  • Loading branch information
AA-Turner committed Aug 14, 2023
1 parent 957d087 commit b3ed89b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxcontrib/serializinghtml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def handle_page(self, pagename: str, ctx: dict, templatename: str = 'page.html',

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

# super here to dump the search index
Expand Down

0 comments on commit b3ed89b

Please sign in to comment.