[FIX] account_export_csv - csv writer doesn't take generator use of list comprehension instead

pull/597/head
Yannick Vaucher 2013-09-13 13:25:19 +02:00 committed by David Beal
parent f790ce9e34
commit 55b669df5c
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ class AccountUnicodeWriter(object):
#we ensure that we do not try to encode none or bool
row = (x or u'' for x in row)
encoded_row = (c.encode("utf-8") if isinstance(c, unicode) else c for c in row)
encoded_row = [c.encode("utf-8") if isinstance(c, unicode) else c for c in row]
self.writer.writerow(encoded_row)
# Fetch UTF-8 output from the queue ...