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: fix deprecation warning in Python 3.12 (pipes is deprecated) #344

Closed
wants to merge 1 commit into from

Conversation

neutrinoceros
Copy link

closes #341

In recent versions of Python, pipes.quote is an alias for shlex.quote, but that function is only available from Python 3.3. This patch should work transparently in all supported versions of Python and avoid deprecation warnings in all cases.

@neutrinoceros neutrinoceros marked this pull request as ready for review November 4, 2023 12:09
@neutrinoceros
Copy link
Author

Oh, I'm only seeing now that #342 already fixes it, with the difference that #342 uses try/except and my patch relies on if/else. I'm happy to drop my PR in favour of @musicinmybrain's

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.

Remove usage of pipes
1 participant