changeset f291c6bdfd6d in trytond:5.6
details: https://hg.tryton.org/trytond?cmd=changeset;node=f291c6bdfd6d
description:
        Assign seps variable of Lang.format before using it

        issue9585
        review306331002
        (grafted from 255f9f75d1af54676a42d3649da4f2be0312350f)
diffstat:

 trytond/ir/lang.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r d7f650772af4 -r f291c6bdfd6d trytond/ir/lang.py
--- a/trytond/ir/lang.py        Sat Sep 12 10:00:03 2020 +0200
+++ b/trytond/ir/lang.py        Wed Sep 16 23:25:48 2020 +0200
@@ -452,6 +452,7 @@
             if seps:
                 formatted = _strip_padding(formatted, seps)
         elif percent[-1] in 'diu':
+            seps = 0
             if grouping:
                 formatted, seps = self._group(formatted, monetary=monetary)
             if seps:

Reply via email to