Hongbin Lu 668e899188 Handle StopIteration for Py3.7
Catch the raise of StopIteration with return.

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."

Closes-Bug: #1785309
Change-Id: Ib751b680b7357782cb5359526e1e83ee8c5c80dd
2018-08-12 21:28:23 +00:00
..
2018-08-12 21:28:23 +00:00
2017-08-22 09:06:33 +07:00
2017-09-01 11:34:23 +08:00