Skip to content

drop six usage #87

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

Merged
merged 1 commit into from
Aug 19, 2023
Merged

drop six usage #87

merged 1 commit into from
Aug 19, 2023

Conversation

jdknight
Copy link
Contributor

@jdknight jdknight commented May 7, 2023

Since sphinx-intl only supports Python 3.7 and newer, there is no longer a need for string compatibility logic for path processing in testing. Replacing its usage with str types and dropping six.

Since sphinx-intl only supports Python 3.7 and newer, there is no longer
a need for string compatibility logic for path processing in testing.
Replacing its usage with `str` types and dropping `six`.

Signed-off-by: James Knight <james.d.knight@live.com>
Copy link
Member

Choose a reason for hiding this comment

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

could we use pathlib instead?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It should be possible, but the test's path implementation provides a series of other helpers as well (e.g. copytree) which some are used. I imagine a good end goal is to get path removed; however, figured for this pull request, to just focus on the removal of the six module.

Copy link
Member

@shimizukawa shimizukawa left a comment

Choose a reason for hiding this comment

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

LGTM! thanks!

@shimizukawa shimizukawa merged commit 1336544 into sphinx-doc:master Aug 19, 2023
@jdknight jdknight deleted the drop-six branch August 19, 2023 11:28
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.

3 participants