[dataimport] Avoid double unicode decoding in ucsvreader (closes #3705752) stable
authorRémi Cardona <remi.cardona@logilab.fr>
Thu, 03 Apr 2014 15:30:37 +0200
branchstable
changeset 9694 c90107199dea
parent 9693 c7a184dd76b2
child 9695 aa982b7c3f2a
[dataimport] Avoid double unicode decoding in ucsvreader (closes #3705752)
dataimport.py
--- a/dataimport.py	Fri Apr 25 12:22:07 2014 +0200
+++ b/dataimport.py	Thu Apr 03 15:30:37 2014 +0200
@@ -141,7 +141,7 @@
         for row in it:
             decoded = [item.decode(encoding) for item in row]
             if not skip_empty or any(decoded):
-                yield [item.decode(encoding) for item in row]
+                yield decoded
     else:
         # Skip first line
         try: