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

Bug 1914478: Replace usage of stdlib pipes library with shlex #1846

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

Conversation

jdmnd
Copy link

@jdmnd jdmnd commented Oct 14, 2024

Python 3.13 removed the already deprecated "pipes" module from the standard library.
Some files were using the "quote" function from pipes, which prior to 3.13 was a re-export of a function with the same name in "shlex".

This change imports the shlex module directly.

https://github.com/python/cpython/blob/3.12/Lib/pipes.py#L66 https://docs.python.org/3/whatsnew/3.13.html

Python 3.13 removed the already deprecated "pipes" module from the
standard library.
Some files were using the "quote" function from pipes, which prior to
3.13 was a re-export of a function with the same name in "shlex".

This change imports the shlex module directly.

https://github.com/python/cpython/blob/3.12/Lib/pipes.py#L66
https://docs.python.org/3/whatsnew/3.13.html
@Rob--W
Copy link
Member

Rob--W commented Nov 5, 2024

I don't have review access here, but if I did I would approve this. I had similar fixes in m-c at https://bugzilla.mozilla.org/show_bug.cgi?id=1926140

When this PR is merged and a new release is made, https://bugzilla.mozilla.org/show_bug.cgi?id=1914478 can be closed.

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.

2 participants