[FIX] coding style in return statement

This commit is contained in:
unknown
2013-02-26 09:22:25 +01:00
parent 22e49ae4b6
commit 02902e30ee

View File

@@ -32,7 +32,7 @@ except:
def float_or_zero(val): def float_or_zero(val):
""" Conversion function used to manage """ Conversion function used to manage
empty string into float usecase""" empty string into float usecase"""
return val and float(val) or 0.0 return float(val) if val else 0.0
class GenericFileParser(FileParser): class GenericFileParser(FileParser):