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

Provenance
ngieAuthored on
Parents
rS348020: Reverse the bit logic of sc_led_modes_mask. Instead of initializing it to
Branches
Unknown
Tags
Unknown