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

Remove pipes module on versions > 3.3. #22

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

Conversation

elementalvoid
Copy link

@elementalvoid elementalvoid commented Oct 29, 2023

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

1 participant