Skip to content

Commit 280d56e

Browse files
committed
rename _msgpack.pyx => _packer.pyx
1 parent 171145e commit 280d56e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

msgpack/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# coding: utf-8
22
from msgpack._version import version
3-
from msgpack._msgpack import *
3+
from msgpack.exceptions import *
4+
from msgpack._packer import pack, packb, Packer, unpack, unpackb, Unpacker
45

56
# alias for compatibility to simplejson/marshal/pickle.
67
load = unpack

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, *args, **kwargs):
5959
else:
6060
Sdist = sdist
6161

62-
sources = ['msgpack/_msgpack.cpp']
62+
sources = ['msgpack/_packer.cpp']
6363
libraries = []
6464
if sys.platform == 'win32':
6565
libraries.append('ws2_32')
@@ -69,7 +69,7 @@ def __init__(self, *args, **kwargs):
6969
else:
7070
macros = [('__LITTLE_ENDIAN__', '1')]
7171

72-
msgpack_mod = Extension('msgpack._msgpack',
72+
msgpack_mod = Extension('msgpack._packer',
7373
sources=sources,
7474
libraries=libraries,
7575
include_dirs=['.'],

0 commit comments

Comments
 (0)