Skip to content

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 <[email protected]>
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