micropython-lib
micropython-lib copied to clipboard
xmltok: fix StopIteration deprecated in PEP-479
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.