From: Gabe Black Date: Mon, 20 Apr 2020 14:04:57 +0000 (-0700) Subject: scons: Use six.input instead of raw_input. X-Git-Tag: v20.0.0.0~182 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a2ced4b007c800cc171ccfb93e0b413f05d533c;p=gem5.git 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 --- 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)