limist/py-moneyed — pull request #13 by fizista (2013-05-11 18:52:59+00:00)
Title: Ticket fix __repr__

Small problem for the __ repr__.

Values ​​from the __ repr__ were not standardized, for example:

> repr(Money(Decimal('2.00'), 'PLN'))
'2.00 PLN'

> repr(Money(Decimal('2'), 'PLN'))
'2 PLN'

so

repr(Money(Decimal('2.00'), 'PLN')) != repr(Money(Decimal('2'), 'PLN'))

I fixed it, and now it works like this:
> repr(Money(Decimal('2.00'), 'PLN'))
'2 PLN'
> repr(moneyed.Money(Decimal('2.200'), 'PLN'))
'2.2 PLN'