Skip to content

Commit c2859d1

Browse files
committed
update source code
1 parent 23250ef commit c2859d1

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

pyexcel_io/plugins.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ def add_a_reader(self, relative_plugin_class_path=None,
3737
file_types=None, stream_type=None):
3838
""" add pyexcle-io reader plugin info """
3939
a_plugin_info = IOPluginInfo(
40-
READER_PLUGIN,
41-
self._get_abs_path(relative_plugin_class_path),
42-
file_types=file_types,
43-
stream_type=stream_type)
40+
READER_PLUGIN,
41+
self._get_abs_path(relative_plugin_class_path),
42+
file_types=file_types,
43+
stream_type=stream_type)
4444
return self.add_a_plugin_instance(a_plugin_info)
4545

4646
def add_a_writer(self, relative_plugin_class_path=None,

pyexcel_io/readers/csvr.py

+6
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@
3333

3434

3535
class CSVMemoryMapIterator(compact.Iterator):
36+
"""
37+
Wrapper class for mmap object
38+
39+
mmap object does not handle encoding at all. This class
40+
provide the necessary transcoding for utf-8, utf-16 and utf-32
41+
"""
3642
def __init__(self, mmap_obj, encoding):
3743
self.__mmap_obj = mmap_obj
3844
self.__encoding = encoding

0 commit comments

Comments
 (0)