'generator' object has no attribute 'next' in disassembler
Bug #1729470 reported by
John
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-msp430-tools |
New
|
Undecided
|
Unassigned |
Bug Description
When trying to disassemble this (minimalistic) intel hex file:
:020000003412b8
:00000001ff
with command line command:
msp430-tool dis -i ihex hexfile.hex
I get the following error:
'generator' object has no attribute 'next'
Which I suspect is a problem with the conversion from python2
to python3, which does not have '.next' as a method (it is now
called __next__ or, alternatively next() can be called on the
generator object.
I did a cursory view of the disassembler, but can't find any
'next' there. I'll probably have more time tomorrow.
The problem is 'repairable' replacing .next by .__next__ in disassenbler.py.
Using next() does not work, I suspect there is a method 'next' declared which interferes with Python's next().
Anyway .__next__ works fine and I couldn't find any other incompatibility.
John