python: Switch to using open instead of file
authorAndreas Sandberg <andreas.sandberg@arm.com>
Fri, 25 Jan 2019 12:03:21 +0000 (12:03 +0000)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Tue, 12 Feb 2019 16:44:21 +0000 (16:44 +0000)
commitb3195c455bf5aed70d2543684f3c0bc7f36c8fcf
treead4a65410ac87f4bb2b1679f3a7843413d488d87
parent626e8faf42db0c75a9f8d054487c411f7d35ccd4
python: Switch to using open instead of file

Python 3 doesn't support the file(name, mode) syntax which has been
deprecated in favour of open.

Change-Id: I35ef8690d97a5243860a64ff985fd22fa86253f1
Signed-off-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/15985
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
src/python/importer.py
src/python/m5/main.py
src/python/m5/simulate.py
src/python/m5/util/code_formatter.py
src/python/m5/util/grammar.py