From 4ab786dbecce48053cb8797d87f97737f0400d3e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 20 Apr 2020 07:03:40 -0700 Subject: [PATCH] scons: Import "sys" which is used in an exception handler. If the call to "raw_input" fails (it does in python 3.x), then the "except" runs and will also fail because sys hasn't been imported. Change-Id: Ibf5778a893a5bd8aad17f4aee544ddcfe5085cab Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27947 Reviewed-by: Nikos Nikoleris Maintainer: Gabe Black Tested-by: kokoro --- site_scons/site_tools/git.py | 1 + 1 file changed, 1 insertion(+) diff --git a/site_scons/site_tools/git.py b/site_scons/site_tools/git.py index e5b79129b..5b4591f35 100644 --- a/site_scons/site_tools/git.py +++ b/site_scons/site_tools/git.py @@ -40,6 +40,7 @@ from __future__ import print_function import os +import sys import gem5_scons.util from m5.util import readCommand -- 2.30.2