From fa2be88b6868d87a4b80959666b96b9a7299a200 Mon Sep 17 00:00:00 2001 From: John Ralls Date: Thu, 17 Apr 2014 14:22:20 -0700 Subject: [PATCH] Correct lambda syntax for py3 Thanks to Paul Franklin for reporting it. --- gramps/plugins/drawreport/statisticschart.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/drawreport/statisticschart.py b/gramps/plugins/drawreport/statisticschart.py index 40cfd60f6..a883df2b6 100644 --- a/gramps/plugins/drawreport/statisticschart.py +++ b/gramps/plugins/drawreport/statisticschart.py @@ -1003,7 +1003,7 @@ class StatisticsChartOptions(MenuReportOptions): chart_types = [] for (chart_opt, tuple) in _Extract.extractors.items(): 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: if idx <= half: category_name = _("Charts 1")