diff contrib/automation/hgautomation/linux.py @ 52677:0e713555ecdc

pyupgrade: rewrite `' '.join(shlex.quote(x) for x in ...)` with `shlex.join()` This was rewritten by the `shlex_join` fixer in `pyupgrade`. This is new in Python 3.8.
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 06 Jan 2025 01:37:43 -0500
parents 905bc9d0a149
children
line wrap: on
line diff
--- a/contrib/automation/hgautomation/linux.py	Mon Jan 06 01:33:08 2025 -0500
+++ b/contrib/automation/hgautomation/linux.py	Mon Jan 06 01:37:43 2025 -0500
@@ -585,7 +585,7 @@
     else:
         python = '/hgdev/pyenv/shims/python%s' % python_version
 
-    test_flags = ' '.join(shlex.quote(a) for a in test_flags)
+    test_flags = shlex.join(test_flags)
 
     command = (
         '/bin/sh -c "export TMPDIR=/hgwork/tmp; '