summaryrefslogtreecommitdiff
path: root/msgpack/_packer.pyx
diff options
context:
space:
mode:
authorInada Naoki <songofacandy@gmail.com>2019-11-28 20:23:34 +0900
committerGitHub <noreply@github.com>2019-11-28 20:23:34 +0900
commit891f2d8743857bb75204f96b0469cb2ec90c7f79 (patch)
tree8d5de9611eef84e3643f1f907e5f4a954b8e25fc /msgpack/_packer.pyx
parentb458e9a6a2cf69e483fa5994d227382c6a01f3c4 (diff)
downloadmsgpack-python-891f2d8743857bb75204f96b0469cb2ec90c7f79.tar.gz
Drop Python 2 support from _cmsgpack (#376)
Diffstat (limited to 'msgpack/_packer.pyx')
-rw-r--r--msgpack/_packer.pyx5
1 files changed, 1 insertions, 4 deletions
diff --git a/msgpack/_packer.pyx b/msgpack/_packer.pyx
index 2f4d120..e620914 100644
--- a/msgpack/_packer.pyx
+++ b/msgpack/_packer.pyx
@@ -130,10 +130,7 @@ cdef class Packer(object):
self._bencoding = encoding
if encoding is None:
- if PY_MAJOR_VERSION < 3:
- self.encoding = 'utf-8'
- else:
- self.encoding = NULL
+ self.encoding = 'utf-8'
else:
self.encoding = self._bencoding