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

Address warnings #10372

Merged
merged 13 commits into from
May 2, 2022
Merged

Address warnings #10372

merged 13 commits into from
May 2, 2022

Conversation

AA-Turner
Copy link
Member

As noted in #9777 (comment), there are some new warnings from Docutils.

This PR resolves warnings in docutils.frontend.OptionParser, docutils.frontend.Option, docutils.nodes.Text, and sphinx.util.i18n.format_date.

It switches to image_loading with a fallback for Docutils 0.17 and earlier, and updates a few remaining cases of Node.traverse -> Node.findall.

We also resolve all the EncodingWarnings from Sphinx directly (ones from Pytest or Docutils are not covered).

A

Feature or Bugfix

  • Bugfix
  • Refactoring

Copy link
Member

@tk0miya tk0miya left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with nits.

sphinx/util/docutils.py Show resolved Hide resolved
tests/test_directive_code.py Outdated Show resolved Hide resolved
@AA-Turner
Copy link
Member Author

@tk0miya thanks for the review, updated.

A

@tk0miya tk0miya added this to the 5.0.0 milestone May 2, 2022
@tk0miya
Copy link
Member

tk0miya commented May 2, 2022

Oops. conflicted. Could you update this, please? Then I'll merge this soon.

# Conflicts:
#	tests/test_search.py
@AA-Turner
Copy link
Member Author

@tk0miya merged 5.x.

A

{
'__version_info__': docutils.__version_info__,
},
RemovedInSphinx60Warning,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're not in hurry. So I'll remove this in 7.0. I'll change this after merging.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, I meant to change that, sorry.

A

@tk0miya tk0miya merged commit 7970e6c into sphinx-doc:5.x May 2, 2022
@tk0miya
Copy link
Member

tk0miya commented May 2, 2022

Thank you for your great work! Merging.

@AA-Turner AA-Turner deleted the fix-warnings branch May 2, 2022 17:48
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants