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>
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>"