python: The new module has been removed in python3
authorGiacomo Travaglini <giacomo.travaglini@arm.com>
Fri, 28 Feb 2020 13:42:03 +0000 (13:42 +0000)
committerGiacomo Travaglini <giacomo.travaglini@arm.com>
Tue, 10 Mar 2020 09:35:56 +0000 (09:35 +0000)
commit735267e1119adb868ff12a4444b5053e88d5a978
tree6ca87542f922f1522ce3af3b7e3c7c8c925e834e
parent5d70afd3a928e1185bcaf4b8fdbd32f42de5c745
python: The new module has been removed in python3

new.instance was used to instantiate a method bypassing the __init__
interface This patch is doing things properly by importing the LRTable
so that the LRParser interface is respected

Change-Id: I0b0ce184ef5ac297af40289a2896962c9a967a71
Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/26243
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/python/m5/util/grammar.py