From 66d10ef2ecd0654b8f06ca8709d7b5fc78dcecae Mon Sep 17 00:00:00 2001 From: RamanjaneyuluIdavalapati Date: Mon, 6 Aug 2018 10:32:04 +0200 Subject: [PATCH] specifying utf-8 encoding for msgpack Unpacker --- .travis.yml | 4 ++-- kwikapi/protocols.py | 4 ++-- setup.py | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 974b8b4..ac965fd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,8 @@ deploy: - LICENSE - kwikapi/api.py - kwikapi/__init__.py - name: kwikapi-0.3.9 - tag_name: 0.3.9 + name: kwikapi-0.4.0 + tag_name: 0.4.0 on: repo: deep-compute/kwikapi - provider: pypi diff --git a/kwikapi/protocols.py b/kwikapi/protocols.py index 6f19c63..f5953ab 100644 --- a/kwikapi/protocols.py +++ b/kwikapi/protocols.py @@ -72,7 +72,7 @@ def get_name(): @staticmethod def serialize(data): - return msgpack.packb(data, encoding="utf-8") + return msgpack.packb(data) @staticmethod def deserialize(data): @@ -80,7 +80,7 @@ def deserialize(data): @classmethod def deserialize_stream(cls, data): - unpacker = msgpack.Unpacker(data) + unpacker = msgpack.Unpacker(data, encoding="utf-8") for item in unpacker: yield item diff --git a/setup.py b/setup.py index 223dc3c..3cf2bac 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,6 @@ from setuptools import setup, find_packages -version = '0.3.9' +version = '0.4.0' setup( name="kwikapi", version=version,