diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:08:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-09-04 09:08:17 +0000 |
commit | 3f3add2bc6aafde4b257458dc6e86bc3aaffca0f (patch) | |
tree | 8e0dfd4750bb9b10a26b95b4cc2610ca34e6420d /pre_commit/commands/install_uninstall.py | |
parent | Adding upstream version 3.3.3. (diff) | |
download | pre-commit-3f3add2bc6aafde4b257458dc6e86bc3aaffca0f.tar.xz pre-commit-3f3add2bc6aafde4b257458dc6e86bc3aaffca0f.zip |
Adding upstream version 3.4.0.upstream/3.4.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'pre_commit/commands/install_uninstall.py')
-rw-r--r-- | pre_commit/commands/install_uninstall.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pre_commit/commands/install_uninstall.py b/pre_commit/commands/install_uninstall.py index 5ff6cba..d19e0d4 100644 --- a/pre_commit/commands/install_uninstall.py +++ b/pre_commit/commands/install_uninstall.py @@ -103,8 +103,7 @@ def _install_hook_script( hook_file.write(before + TEMPLATE_START) hook_file.write(f'INSTALL_PYTHON={shlex.quote(sys.executable)}\n') - # TODO: python3.8+: shlex.join - args_s = ' '.join(shlex.quote(part) for part in args) + args_s = shlex.join(args) hook_file.write(f'ARGS=({args_s})\n') hook_file.write(TEMPLATE_END + after) make_executable(hook_path) |