python: Remove Python 2.7 compatibility code
authorAndreas Sandberg <andreas.sandberg@arm.com>
Thu, 21 Jan 2021 17:09:38 +0000 (17:09 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 22 Jan 2021 15:29:12 +0000 (15:29 +0000)
commit4b9c46caa55212c26e119e54e005b6f4880d2ba8
tree14ed6be4b9e20c9cec037469289002aea9a8db0c
parent36ab8ef4e7b69f9db0fd3299d976a9195a063512
python: Remove Python 2.7 compatibility code

We don't support Python 2.7 anymore. Remove glue code like the six
dependency and "from __future__" imports from gem5's standard library.

Change-Id: I71834c325f86ff0329b222be87794ead96081f05
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/39584
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
28 files changed:
src/python/importer.py
src/python/m5/SimObject.py
src/python/m5/__init__.py
src/python/m5/core.py
src/python/m5/debug.py
src/python/m5/event.py
src/python/m5/ext/__init__.py
src/python/m5/internal/params.py
src/python/m5/main.py
src/python/m5/objects/__init__.py
src/python/m5/options.py
src/python/m5/params.py
src/python/m5/proxy.py
src/python/m5/simulate.py
src/python/m5/stats/__init__.py
src/python/m5/ticks.py
src/python/m5/trace.py
src/python/m5/util/__init__.py
src/python/m5/util/attrdict.py
src/python/m5/util/code_formatter.py
src/python/m5/util/convert.py
src/python/m5/util/dot_writer.py
src/python/m5/util/fdthelper.py
src/python/m5/util/grammar.py
src/python/m5/util/jobfile.py
src/python/m5/util/multidict.py
src/python/m5/util/pybind.py
src/python/m5/util/terminal.py