python: Switch from using compare to key in list sort
authorAndreas Sandberg <andreas.sandberg@arm.com>
Sat, 26 Jan 2019 09:55:35 +0000 (09:55 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Wed, 13 Feb 2019 09:52:37 +0000 (09:52 +0000)
commitac00ec10ca483a3b96349dd2952a7881c6d8b29a
tree270eb5909ed6ea6d83084f75b02ae0d66f6bacad
parentc5e8e0e7c7028848c1317216693184f64db62b45
python: Switch from using compare to key in list sort

Python 3 has deprecated the use of a comparison function in favour of
a key extraction function.

Change-Id: I4b7eab791ecbdfbf7147f57fdbc7cbe8f1de20dd
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15995
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/python/m5/stats/__init__.py