Commit 01a6c490 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Use shlex.join if available (py>=3.8)

parent 7f44ac2e
......@@ -252,7 +252,8 @@ def _dryrun(submit, returnStdout, returnStderr, returnExitcode, *args):
results = []
stderr = ''
stdout = ' '.join(args)
join = getattr(shlex, 'join', ' '.join)
stdout = join(args)
if returnStdout: results.append(stdout)
if returnStderr: results.append(stderr)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment