changeset ee8b5225392b in modules/account:5.2
details: https://hg.tryton.org/modules/account?cmd=changeset;node=ee8b5225392b
description:
Avoid shadowing the loop variable
review284281003
(grafted from d6e063a8c00b0372cf6dbe2d172811b6143e2d32)
diffstat:
move.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (20 lines):
diff -r 9f81d1107cd2 -r ee8b5225392b move.py
--- a/move.py Fri Mar 06 11:21:30 2020 +0100
+++ b/move.py Fri Mar 06 11:27:10 2020 +0100
@@ -1913,11 +1913,11 @@
maturity_dates[line.account], line.maturity_date)
else:
maturity_dates[line.account] = line.maturity_date
- line = self._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 = self._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