python: Add fallbacks for packages that have been renamed
authorAndreas Sandberg <andreas.sandberg@arm.com>
Sat, 26 Jan 2019 09:54:00 +0000 (09:54 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 22 Feb 2019 15:38:27 +0000 (15:38 +0000)
commit174ef8a73e384379f8f818d049bf5a1e0c1f349a
treec4c071172106155d2acfa7cb082a4dd1f5a2859e
parent5de8626abc9aca4dbae5b81b819475945a2736c8
python: Add fallbacks for packages that have been renamed

Python 3 has restructured some packages. Specifically, __builtin__ has
been renamed to builtins and urlparse has been included in urllib.

Change-Id: I81f8f3942471db1043006a36abbad6e5a49e0a43
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15994
Reviewed-by: Juha Jäykkä <juha.jaykka@arm.com>
src/python/m5/stats/__init__.py
src/python/m5/util/code_formatter.py