
Handle StopIteration for Py3.7. PEP 0479, https://www.python.org/dev/peps/pep-0479/, makes the following change: "when StopIteration is raised inside a generator, it is replaced it with RuntimeError". And states: "If raise StopIteration occurs directly in a generator, simply replace it with return." Also fix test cases that make assumptions about the ordering of **kwargs. Python, up to 3.6, doesn't preserve any ordering for those. And the behavior differs between various Python versions. For details see PEP 0468 (https://www.python.org/dev/peps/pep-0468/) Change-Id: I9847053534ffd47c4559d504be647be0de25b651 Closes-Bug: #1784714 Closes-Bug: #1711469
Description
Languages
Python
99.2%
Shell
0.6%
reStructuredText
0.2%