scons: Remove Python 2.7 compatibility code
authorAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 21 Jan 2021 17:18:21 +0000 (17:18 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 22 Jan 2021 15:29:12 +0000 (15:29 +0000)
commitd06a193c13320486f365118ee9f9f7ee79748b5d
tree601941ff9b4540e4371fa9962b8b190d69f36314
parent4b9c46caa55212c26e119e54e005b6f4880d2ba8
scons: Remove Python 2.7 compatibility code

Remove the dependency on six and most 'import x from __future__'. A
few instances of imports from the future have been left in place to
ensure that Python 2.7 users still get an error message when invoking
scons.

Change-Id: I366275a6040f0084e91198b5b5c2a648bffbf2d2
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39585
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Gabe Black <gabe.black@gmail.com>
SConstruct
ext/libelf/SConscript
ext/systemc/SConscript
ext/systemc/src/sysc/kernel/SConscript.sc
site_scons/gem5_scons/__init__.py
site_scons/site_tools/git.py
src/SConscript
src/mem/ruby/SConscript
src/systemc/tests/SConscript