unknown-horizons/unknown-horizons — pull request #69 by ChrisOelmueller (2012-07-02 00:14:32+00:00)
Title: * Replace most instances of "len(L) > 0" with "L"

This uses "if L" and "while L" and "assert L" now instead of
"if len(L) > 0", "while len(L) > 0", and "assert len(L) > 0".

"return len(L) > 0" was not modified.
I am not sure whether "return bool(L)" would be an improvement here.

Please point out problems with this commit if you see some! I ran all current game and gui tests, but perhaps those do not cover all cases.