Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Comments

Remove pipes module on versions > 3.3.#22

Open
elementalvoid wants to merge 1 commit intoxolox:master from
elementalvoid:remove-deprecated-pipes-module
Open

Remove pipes module on versions > 3.3. #22
elementalvoid wants to merge 1 commit intoxolox:master from
elementalvoid:remove-deprecated-pipes-module

Conversation

@elementalvoid
Copy link

@elementalvoid elementalvoid commented Oct 29, 2023
edited
Loading

The pipes module is deprecated as of 3.11 and is set to be removed in 3.13.

The shlex module introduced a quote function in 3.3 and the pipes module adopted it at the same time.

I performed the import in such a way as to continue to use the pipes.quote when it wasn't just a wrapper around shlex.quote. (Working under the assumption that you'd like to keep support for older versions.)

I also added newer Python versions to the PyPi classifiers and to the Travis config.

Let me know if there's anything you'd like to adjust (you also have edit permissions on the PR ̄\_(ツ)_/ ̄).


I recognize this is similar to #21. The main difference is that this change supports all Python versions.

Pipes is deprecated as of [3.11](https://peps.python.org/pep-0594/) and
is set to be removed in 3.13.
The `shlex` module introduced a `quote` function in 3.3 and the `pipes`
module adopted it at the same time.
I performed the import in such a way as to continue to use the
pipes.quote when it wasn't just a wrapper around shlex.quote.
Copy link
Author

FWIW, I have given up and replaced executor with sh in my applications.

sterliakov reacted with thumbs up emoji

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /