This is an archive of the discontinued LLVM Phabricator instance.

[lldb/test] Replace shlex.join with shlex.quote
ClosedPublic

Authored by labath on Oct 29 2021, 4:37 AM.

Details

Summary

join is only available since python-3.8, but the all the interesting
magic happens in shlex.quote, which has been around since 3.3.

Use shlex.quote, and instead provide a home-grown helper function to
handle the joining.

Diff Detail

Event Timeline

labath requested review of this revision.Oct 29 2021, 4:37 AM
labath created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptOct 29 2021, 4:37 AM
teemperor accepted this revision.Oct 29 2021, 4:40 AM

Thanks!

lldb/packages/Python/lldbsuite/support/seven.py
54
TODO: Replace this with `shlex.join` when minimum Python version is >= 3.8
This revision is now accepted and ready to land.Oct 29 2021, 4:40 AM
This revision was automatically updated to reflect the committed changes.
labath marked an inline comment as done.Oct 29 2021, 4:42 AM