hideki nara  committed 80a42ff

parameters to factory must be relayed to UnicodeReader

  • Participants
  • Parent commits 57435ae

Comments (0)

Files changed (1)

File csvutils/

         ''' enumerator factory for UnicodeReader
             - Key must be encode in unicode.
+            - data_dict values must be "strip()"ed because there could be heading and trailing spaces around.
             for index,data_dict in UnicodeReader.csv_enumerator(csv_straeam,encoding='utf8'):
         reader = csv.DictReader(stream) 
-        reader.reader = cls(stream, dialect=None, encoding=None, errors="strict", **kwds)
+        reader.reader = cls(stream, dialect=dialect, encoding=encoding, errors=errors , **kwds)
         return enumerate(reader)