HomeFreeBSD

Don't raise StopIteration when complete; a bare return suffices

Description

Don't raise StopIteration when complete; a bare return suffices

Bare return statements are valid terminators for generators:
https://docs.python.org/2/reference/simple_stmts.html#the-return-statement
.

Details

Committed
ngieMay 20 2019, 10:37 PM
Parents
rS348020: Reverse the bit logic of sc_led_modes_mask. Instead of initializing it to
Branches
Unknown
Tags
Unknown