Fixed lint problems

This commit is contained in:
Michał Hernas 2015-05-18 16:55:40 +02:00
parent 069ea31cfb
commit e8c226c2db

View File

@ -783,7 +783,7 @@ class DecimalField(Field):
sign, digittuple, exponent = value.as_tuple() sign, digittuple, exponent = value.as_tuple()
decimals = exponent * decimal.Decimal(-1) if exponent < 0 else 0 decimals = exponent * decimal.Decimal(-1) if exponent < 0 else 0
# digittuple doesn't include any leading zeros. # digittuple doesn't include any leading zeros.
digits = len(digittuple) digits = len(digittuple)
if decimals > digits: if decimals > digits: