From 195d4c69d687d6c26da67655ccad03f86daa21ab Mon Sep 17 00:00:00 2001 From: Shaun Cutts Date: Fri, 31 May 2013 12:47:51 -0400 Subject: [PATCH] fixes join in WithJoined --- freshen/parser.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/freshen/parser.py b/freshen/parser.py index 8791df6..acd074a 100644 --- a/freshen/parser.py +++ b/freshen/parser.py @@ -1,4 +1,4 @@ -#-*- coding: utf8 -*- +# -*- coding: utf8 -*- # This line ensures that frames from this file will not be shown in tracebacks __unittest = 1 @@ -213,8 +213,7 @@ def create_joined_table( table, *with_tables ): for joined in with_tables: table.headings.extend( joined.headings ) table.rows = [ - reduce( lambda a, b: a + b, seg ) - for seg in product( table.rows, joined.rows ) + a + b for a, b in product( table.rows, joined.rows ) ] return table