lumy / mingus

Automatically exported from code.google.com/p/mingus
GNU General Public License v3.0
0 stars 0 forks source link

make one-liners out of meter functions #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
These sort of things:

if is_valid(meter) and meter[0] % 3 == 0:
        return True
else:
        return False

should be rewritten to 

return is_valid(meter) and meter[0] % 3 == 0

Original issue reported on code.google.com by Rhijnauwen@gmail.com on 10 Feb 2009 at 11:08

GoogleCodeExporter commented 9 years ago
Fixed. Version > 0.3.9.2 contains the enhancements.

Original comment by Rhijnauwen@gmail.com on 1 Mar 2009 at 7:07