Skip to content

gui: replace usage of stdlib pipes library with shlex (bug 1914478)#1846

Merged
zzzeid merged 1 commit intomozilla:mainfrom
jdmnd:remove-pipes-lib
Nov 6, 2024
Merged

gui: replace usage of stdlib pipes library with shlex (bug 1914478)#1846
zzzeid merged 1 commit intomozilla:mainfrom
jdmnd:remove-pipes-lib

Conversation

@jdmnd
Copy link
Contributor

@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.

@zzzeid zzzeid changed the title Bug 1914478: Replace usage of stdlib pipes library with shlex gui: replace usage of stdlib pipes library with shlex (bug 1914478) Nov 6, 2024
@zzzeid zzzeid changed the base branch from main to zeid/bug-1914897-python-3.13 November 6, 2024 15:38
@zzzeid zzzeid changed the base branch from zeid/bug-1914897-python-3.13 to main November 6, 2024 15:41
Copy link
Collaborator

@zzzeid zzzeid left a comment

Choose a reason for hiding this comment

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

Thanks for the contribution!

@zzzeid zzzeid merged commit 0c5a812 into mozilla:main Nov 6, 2024
@jdmnd jdmnd deleted the remove-pipes-lib branch November 6, 2024 16:13
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