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

Replace pipes.quote with shlex.quote on Python 3 #75

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

Conversation

musicinmybrain
Copy link

The shlex.quote() API is available from Python 3.3 on; pipes.quote() was never documented, and is removed in Python 3.13.

Fixes #73.

The shlex.quote() API is available from Python 3.3 on; pipes.quote() was
never documented, and is removed in Python 3.13.

Fixes xolox#73.
gentoo-bot pushed a commit to gentoo/gentoo that referenced this pull request Jun 30, 2024
The test restriction is dropped as the test suite seems to work. It was
necessary to apply patch [1] in order to make py3.13 work.

[1] xolox/python-humanfriendly#75

Signed-off-by: Petr Vaněk <[email protected]>
Copy link

@smoser smoser left a comment

Choose a reason for hiding this comment

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

I'm not a maintainer, but I think this looks good.

Perhaps it fits in the 'compat.py'

This module exposes aliases and functions that make it easier to write Python
code that is compatible with Python 2 and Python 3.

and then used from there. But either way, it would be nice to have this as python 3.13 is eminent.

Thanks for the PR @musicinmybrain

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.

module pipes is removed in python version 3.13 - Please use the subprocess module instead
2 participants