Remove tuple method parameters
They can be found through autopep8 (W690) or python-modernize. Variables manually renamed. This is because Python 3 does not support tuple unpacking: http://legacy.python.org/dev/peps/pep-3113/
This commit is contained in:
parent
6161a0aacd
commit
e783f2c821
10 changed files with 22 additions and 13 deletions
|
|
@ -231,7 +231,7 @@ class StatementParser(object):
|
|||
# Infer amount type by its indentation in the layout.
|
||||
amount_total = clean_amount('0')
|
||||
for (_, _, _, _, indent, _), amount in amounts:
|
||||
within = lambda (xmin, xmax): xmin <= indent <= xmax
|
||||
within = lambda xmin_xmax: xmin_xmax[0] <= indent <= xmin_xmax[1]
|
||||
if within(range_skip):
|
||||
continue
|
||||
elif within(range_plus):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue