File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
from msgpack import fallback
2
2
3
3
try :
4
- from msgpack import _unpacker , _packer
4
+ from msgpack import _cmsgpack
5
5
6
6
has_ext = True
7
7
except ImportError :
@@ -17,14 +17,14 @@ def profile(name, func):
17
17
18
18
def simple (name , data ):
19
19
if has_ext :
20
- packer = _packer .Packer ()
20
+ packer = _cmsgpack .Packer ()
21
21
profile ("packing %s (ext)" % name , lambda : packer .pack (data ))
22
22
packer = fallback .Packer ()
23
23
profile ("packing %s (fallback)" % name , lambda : packer .pack (data ))
24
24
25
25
data = packer .pack (data )
26
26
if has_ext :
27
- profile ("unpacking %s (ext)" % name , lambda : _unpacker .unpackb (data ))
27
+ profile ("unpacking %s (ext)" % name , lambda : _cmsgpack .unpackb (data ))
28
28
profile ("unpacking %s (fallback)" % name , lambda : fallback .unpackb (data ))
29
29
30
30
You can’t perform that action at this time.
0 commit comments