mem: Fix python3 incompatibility issue in slicc's HTML builder
authorHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 1 Jul 2020 02:07:35 +0000 (19:07 -0700)
committerHoa Nguyen <hoanguyen@ucdavis.edu>
Wed, 1 Jul 2020 06:41:09 +0000 (06:41 +0000)
commit01dd6dd46041b6a6e06afce682d438bf879933a8
tree78c7b10d031e5a0ba63c602b28c9ee7cf84224d4
parentc0129d23a51728592c68770a448fb25fcbc069ea
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>
src/mem/slicc/generate/html.py