Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid RemovedInSphinx80Warning in path-manipulation code. #977

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gareth-rees
Copy link

@gareth-rees gareth-rees commented Mar 31, 2024

In recent versions of Sphinx, code that treats Sphinx application paths such as Sphinx.confdir and Sphinx.doctreedir as strings emits the warning "Sphinx 8 will drop support for representing paths as strings".

This commit updates path-manipulation code to use functions in the os.path module, which accept path-like objects as well as strings.

Note that you will need pull request #976 in order for tests to pass, due to issue #975.

In recent versions of Sphinx, code that treats Sphinx application
paths such as `Sphinx.confdir` and `Sphinx.doctreedir` as strings
emits the warning "Sphinx 8 will drop support for representing paths
as strings".

This commit updates path-manipulation code to use functions in the
`os.path` module, which accept path-like objects as well as strings.

This fixes issue breathe-doc#974.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants