diff options
author | Koichi Shiraishi <zchee.io@gmail.com> | 2019-12-14 15:56:17 +0900 |
---|---|---|
committer | Koichi Shiraishi <zchee.io@gmail.com> | 2019-12-14 16:06:58 +0900 |
commit | 1a8b88b8fe5cda6345955c8babeb21dec218fb4a (patch) | |
tree | c255868f446cdde9b0415e148e641d9589332f74 | |
parent | e9aad25f28b68581cea2d94400b9fa64b724773b (diff) | |
download | deoplete.nvim-1a8b88b8fe5cda6345955c8babeb21dec218fb4a.zip |
Remove encoding and unicode_errors option from Packer and Unpacker
ref:
- msgpack/msgpack-python@e1ed0044bf31
- msgpack/msgpack-python@e419cd8e2db6
-rw-r--r-- | rplugin/python3/deoplete/child.py | 5 | ||||
-rw-r--r-- | rplugin/python3/deoplete/parent.py | 5 |
2 files changed, 2 insertions, 8 deletions
diff --git a/rplugin/python3/deoplete/child.py b/rplugin/python3/deoplete/child.py index 67477b6..af2c950 100644 --- a/rplugin/python3/deoplete/child.py +++ b/rplugin/python3/deoplete/child.py @@ -40,12 +40,9 @@ class Child(logger.LoggingMixin): self._source_errors: typing.Dict[str, int] = defaultdict(int) self._prev_results: typing.Dict[str, Result] = {} self._unpacker = msgpack.Unpacker( - encoding='utf-8', unicode_errors='surrogateescape') self._packer = msgpack.Packer( - use_bin_type=True, - encoding='utf-8', - unicode_errors='surrogateescape') + use_bin_type=True) self._ignore_sources: typing.List[typing.Any] = [] def main_loop(self, stdout: typing.Any) -> None: diff --git a/rplugin/python3/deoplete/parent.py b/rplugin/python3/deoplete/parent.py index 72438b8..01f92e2 100644 --- a/rplugin/python3/deoplete/parent.py +++ b/rplugin/python3/deoplete/parent.py @@ -118,11 +118,8 @@ class AsyncParent(_Parent): self._queue_out: Queue = Queue() # type: ignore self._queue_err: Queue = Queue() # type: ignore self._packer = msgpack.Packer( - use_bin_type=True, - encoding='utf-8', - unicode_errors='surrogateescape') + use_bin_type=True) self._unpacker = msgpack.Unpacker( - encoding='utf-8', unicode_errors='surrogateescape') self._prev_pos: typing.List[typing.Any] = [] |