[Lldb-commits] [PATCH] D112802: [lldb/test] Replace shlex.join with shlex.quote

2021-10-29 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGb42d51ba9ad1: [lldb/test] Replace shlex.join with shlex.quote (authored by labath). Changed prior to commit: https://reviews.llvm.org/D112802?vs=383301&id=383302#toc Repository: rG LLVM Github Monore

[Lldb-commits] [PATCH] D112802: [lldb/test] Replace shlex.join with shlex.quote

2021-10-29 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor accepted this revision. teemperor added a comment. This revision is now accepted and ready to land. Thanks! Comment at: lldb/packages/Python/lldbsuite/support/seven.py:54 + +def join_for_shell(split_command): +return " ".join([shlex.quote(part) for part in split_c

[Lldb-commits] [PATCH] D112802: [lldb/test] Replace shlex.join with shlex.quote

2021-10-29 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added a reviewer: teemperor. labath requested review of this revision. Herald added a project: LLDB. 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 instea