PEP479: do not raise StopIteration
Raising StopIteration gets translated to a RuntimeError in Python 3.7. The same behavior can be achieved by 'return' from generators. Reference: https://github.com/avocado-framework/avocado/issues/2721Signed-off-by: NCleber Rosa <crosa@redhat.com>
Showing
想要评论请 注册 或 登录