Skip to content

BUG: fix deprecation warning in Python 3.12 (pipes is deprecated) - #344

Closed
neutrinoceros wants to merge 1 commit into
ekalinin:masterfrom
neutrinoceros:pipes_depr
Closed

neutrinoceros wants to merge 1 commit into
ekalinin:masterfrom
neutrinoceros:pipes_depr

Conversation

@neutrinoceros

Copy link
Copy Markdown

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
Copy Markdown
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