[dataio] Add a forgotten encoding attribut
authorSimon Chabot <simon.chabot@logilab.fr>
Wed, 14 Nov 2012 11:23:49 +0100
changeset 134 c5bbcea9dca5
parent 133 84e70dbb970a
child 135 9d13b81e7f26
[dataio] Add a forgotten encoding attribut
dataio.py
--- a/dataio.py	Wed Nov 14 10:50:10 2012 +0100
+++ b/dataio.py	Wed Nov 14 11:23:49 2012 +0100
@@ -86,7 +86,7 @@
         with open(filename, 'r') as csvfile:
             reader = csv.reader(csvfile, delimiter=delimiter)
             for row in reader:
-                yield [autocasted(cell) for cell in row]
+                yield [autocasted(cell, encoding) for cell in row]
 
 
     result = []