mem: Fix python3 incompatibility issue in slicc's HTML builder
In python3, an iterator does not have the next() method. next(iterator) works in both python2.7+ and python3. Change-Id: Ic1ceb993018a0f37e8d30086a054ffc2e311bb46 Signed-off-by: Hoa Nguyen <hoanguyen@ucdavis.edu> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30874 Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -62,7 +62,7 @@ def formatShorthand(short):
|
||||
if i + 1 < len(short):
|
||||
# -- Proceed to next char. Yes I know that changing
|
||||
# the loop var is ugly!
|
||||
i,c = gen.next()
|
||||
i,c = next(gen)
|
||||
munged_shorthand += "<B><FONT size=+1>"
|
||||
munged_shorthand += c
|
||||
munged_shorthand += "</FONT></B>"
|
||||
|
||||
Reference in New Issue
Block a user