From 39fd61d7ddea49e5ab0cdcada5c734a6826f3636 Mon Sep 17 00:00:00 2001 From: Hoa Nguyen Date: Fri, 1 Dec 2023 14:03:59 -0800 Subject: [PATCH] misc: Fix precommit install (#634) Previously, the `subprocess` module was used to execute shell command installing precommit hook. However, after #431 [1], the import of the `subprocess` module was overriden by `asyncio.subprocess`, which has a different API to execute the shell command. This change removes the `asyncio.subprocess` import. [1] https://github.com/gem5/gem5/pull/431 Change-Id: I9a7d51f85518089d258ab57c5d849a36dcf128e9 Signed-off-by: Hoa Nguyen --- site_scons/site_tools/git.py | 1 - 1 file changed, 1 deletion(-) diff --git a/site_scons/site_tools/git.py b/site_scons/site_tools/git.py index 40e5d6267e..dea6d8e152 100644 --- a/site_scons/site_tools/git.py +++ b/site_scons/site_tools/git.py @@ -41,7 +41,6 @@ import os import subprocess import sys -from asyncio import subprocess import gem5_scons.util import SCons.Script