From 1a2ced4b007c800cc171ccfb93e0b413f05d533c Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 20 Apr 2020 07:04:57 -0700 Subject: [PATCH] scons: Use six.input instead of raw_input. raw_input is not defined in python 3.x and has been replaced by "input". The "six" compatiblity module defines its own "input" method which figures out which to use under the covers. Change-Id: I13a885dd45ec0160c7b46e334b06aae239e3c836 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27948 Reviewed-by: Giacomo Travaglini Maintainer: Gabe Black Tested-by: kokoro --- site_scons/site_tools/git.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/site_scons/site_tools/git.py b/site_scons/site_tools/git.py index 5b4591f35..c5b2d5dac 100644 --- a/site_scons/site_tools/git.py +++ b/site_scons/site_tools/git.py @@ -44,6 +44,7 @@ import sys import gem5_scons.util from m5.util import readCommand +from six.moves import input git_style_message = """ You're missing the gem5 style or commit message hook. These hooks help @@ -102,7 +103,7 @@ def install_style_hooks(env): print(git_style_message, end=' ') try: - raw_input() + input() except: print("Input exception, exiting scons.\n") sys.exit(1) -- 2.30.2