Skip to content

Commit 513df73

Browse files
authored
Merge pull request #344 from blueyed/encoding
Fix PendingDeprecationWarning with Packer.encoding
2 parents ac0e3eb + 88ec399 commit 513df73

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

neovim/msgpack_rpc/msgpack_stream.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ class MsgpackStream(object):
2020
def __init__(self, event_loop):
2121
"""Wrap `event_loop` on a msgpack-aware interface."""
2222
self.loop = event_loop
23-
self._packer = Packer(encoding='utf-8',
24-
unicode_errors=unicode_errors_default)
23+
self._packer = Packer(unicode_errors=unicode_errors_default)
2524
self._unpacker = Unpacker()
2625
self._message_cb = None
2726

setup.cfg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
11
[flake8]
22
ignore = D211,E731,D401
3+
4+
[tool:pytest]
5+
filterwarnings =
6+
once::DeprecationWarning
7+
once::PendingDeprecationWarning

0 commit comments

Comments
 (0)