File tree Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Expand file tree Collapse file tree 2 files changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -46,9 +46,6 @@ def from_session(cls, session):
46
46
session .error_wrapper = lambda e : NvimError (e [1 ])
47
47
channel_id , metadata = session .request (b'vim_get_api_info' )
48
48
49
- encoding = session .request (b'vim_get_option' , b'encoding' )
50
- session ._async_session ._msgpack_stream .set_packer_encoding (encoding )
51
-
52
49
if IS_PYTHON3 :
53
50
hook = DecodeHook ()
54
51
# decode all metadata strings for python3
Original file line number Diff line number Diff line change @@ -19,14 +19,10 @@ class MsgpackStream(object):
19
19
def __init__ (self , event_loop ):
20
20
"""Wrap `event_loop` on a msgpack-aware interface."""
21
21
self ._event_loop = event_loop
22
- self ._packer = Packer (use_bin_type = True , encoding = None )
22
+ self ._packer = Packer (use_bin_type = True )
23
23
self ._unpacker = Unpacker ()
24
24
self ._message_cb = None
25
25
26
- def set_packer_encoding (self , encoding ):
27
- """Switch encoding for Unicode strings."""
28
- self ._packer = Packer (use_bin_type = True , encoding = encoding )
29
-
30
26
def threadsafe_call (self , fn ):
31
27
"""Wrapper around `BaseEventLoop.threadsafe_call`."""
32
28
self ._event_loop .threadsafe_call (fn )
You can’t perform that action at this time.
0 commit comments