changeset d6e063a8c00b in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset;node=d6e063a8c00b
description:
Avoid shadowing the loop variable
review284281003
diffstat:
move.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (20 lines):
diff -r 53a52828acac -r d6e063a8c00b move.py
--- a/move.py Fri Mar 06 11:21:30 2020 +0100
+++ b/move.py Fri Mar 06 11:27:10 2020 +0100
@@ -1973,11 +1973,11 @@
maturity_dates[line.account], line.maturity_date)
else:
maturity_dates[line.account] = line.maturity_date
- line = cls._counterpart_line(line)
- accounts[line.account] += line.debit - line.credit
- if line.amount_second_currency:
- amount_second_currency += line.amount_second_currency
- counterpart_lines.append(line)
+ cline = cls._counterpart_line(line)
+ accounts[cline.account] += cline.debit - cline.credit
+ if cline.amount_second_currency:
+ amount_second_currency += cline.amount_second_currency
+ counterpart_lines.append(cline)
move.lines = counterpart_lines
balance_line = None