Commits

hideki nara  committed 80a42ff

parameters to factory must be relayed to UnicodeReader

  • Participants
  • Parent commits 57435ae

Comments (0)

Files changed (1)

File csvutils/utils.py

         ''' 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.
+    
         sample::
 
             for index,data_dict in UnicodeReader.csv_enumerator(csv_straeam,encoding='utf8'):
                 Account(**inits).save()
         '''
         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)