Skip to content

Commit

Permalink
update source code
Browse files Browse the repository at this point in the history
  • Loading branch information
chfw committed Jun 15, 2017
1 parent 23250ef commit c2859d1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyexcel_io/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ def add_a_reader(self, relative_plugin_class_path=None,
file_types=None, stream_type=None):
""" add pyexcle-io reader plugin info """
a_plugin_info = IOPluginInfo(
READER_PLUGIN,
self._get_abs_path(relative_plugin_class_path),
file_types=file_types,
stream_type=stream_type)
READER_PLUGIN,
self._get_abs_path(relative_plugin_class_path),
file_types=file_types,
stream_type=stream_type)
return self.add_a_plugin_instance(a_plugin_info)

def add_a_writer(self, relative_plugin_class_path=None,
Expand Down
6 changes: 6 additions & 0 deletions pyexcel_io/readers/csvr.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@


class CSVMemoryMapIterator(compact.Iterator):
"""
Wrapper class for mmap object
mmap object does not handle encoding at all. This class
provide the necessary transcoding for utf-8, utf-16 and utf-32
"""
def __init__(self, mmap_obj, encoding):
self.__mmap_obj = mmap_obj
self.__encoding = encoding
Expand Down

0 comments on commit c2859d1

Please sign in to comment.