micropython-lib icon indicating copy to clipboard operation
micropython-lib copied to clipboard

xmltok: fix StopIteration deprecated in PEP-479

Open ThunderEX opened this issue 5 years ago • 0 comments

Due to change in micropython for PEP-479, StopIteration has been deprecated for return. This results in xmltok to raise RuntimeError every time. This is a simple fix to just change from StopIteration to EOFError and then return it in generator.

ThunderEX avatar Feb 03 '21 01:02 ThunderEX