SIGN IN SIGN UP

Use two-argument form of next() and use a return-statement instead of an explicit raise StopIteration

R
Raymond Hettinger committed
bbeac6ebd8c760b927326c46dfb9d7201a6b8845
Parent: ae39fbd