Skip to content

Replace pipes.quote with shlex.quote in configure.py #2340

Merged
jhasse merged 2 commits intoninja-build:masterfrom
bc-lee:feature/deprecate-pipes-module
Oct 14, 2023
Merged

Replace pipes.quote with shlex.quote in configure.py #2340
jhasse merged 2 commits intoninja-build:masterfrom
bc-lee:feature/deprecate-pipes-module

Conversation

@bc-lee
Copy link
Copy Markdown
Contributor

@bc-lee bc-lee commented Oct 9, 2023

Python 3.12 deprecated the pipes module and it will be removed
in Python 3.13. In configure.py, I have replaced the usage of pipes.quote
with shlex.quote, which is exactly the same function as pipes.quote.

For more details, refer to PEP 0594: https://peps.python.org/pep-0594

bc-lee added 2 commits October 9, 2023 20:15
Python 3.12 deprecated the pipes module and it will be removed
in Python 3.13. In configure.py, I have replaced the usage of pipes.quote
with shlex.quote, which is the exactly same function as pipes.quote.

For more details, refer to PEP 0594: https://peps.python.org/pep-0594
@jhasse jhasse merged commit 885b4ef into ninja-build:master Oct 14, 2023
@bc-lee bc-lee deleted the feature/deprecate-pipes-module branch October 14, 2023 10:37
@kloczek
Copy link
Copy Markdown

kloczek commented Nov 16, 2023

It would be rally good to release new version because this commit.

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