Correct lambda syntax for py3
Thanks to Paul Franklin for reporting it.
This commit is contained in:
parent
15206590e7
commit
fa2be88b68
@ -1003,7 +1003,7 @@ class StatisticsChartOptions(MenuReportOptions):
|
|||||||
chart_types = []
|
chart_types = []
|
||||||
for (chart_opt, tuple) in _Extract.extractors.items():
|
for (chart_opt, tuple) in _Extract.extractors.items():
|
||||||
chart_types.append((_(tuple[1]), chart_opt, tuple))
|
chart_types.append((_(tuple[1]), chart_opt, tuple))
|
||||||
sorted_chart_types = sorted(chart_types, key=lambda(x):glocale.sort_key(x[0]))
|
sorted_chart_types = sorted(chart_types, key=lambda x:glocale.sort_key(x[0]))
|
||||||
for (translated_option_name, opt_name, tuple) in sorted_chart_types:
|
for (translated_option_name, opt_name, tuple) in sorted_chart_types:
|
||||||
if idx <= half:
|
if idx <= half:
|
||||||
category_name = _("Charts 1")
|
category_name = _("Charts 1")
|
||||||
|
Loading…
Reference in New Issue
Block a user