Commit 0ab10e46 authored by Raymond Hettinger's avatar Raymond Hettinger

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

parent 23f9fc34
...@@ -1657,7 +1657,8 @@ to work with the :class:`Decimal` class:: ...@@ -1657,7 +1657,8 @@ to work with the :class:`Decimal` class::
build(trailneg) build(trailneg)
for i in range(places): for i in range(places):
build(next() if digits else '0') build(next() if digits else '0')
build(dp) if places:
build(dp)
if not digits: if not digits:
build('0') build('0')
i = 0 i = 0
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment