Issue #10813: Small improvement to decimal money format recipe.

This commit is contained in:
Raymond Hettinger 2011-01-08 09:03:11 +00:00
parent 23f9fc3448
commit 0ab10e4600

View file

@ -1657,7 +1657,8 @@ to work with the :class:`Decimal` class::
build(trailneg)
for i in range(places):
build(next() if digits else '0')
build(dp)
if places:
build(dp)
if not digits:
build('0')
i = 0