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 11from msgpack import fallback
22
33try :
4- from msgpack import _unpacker , _packer
4+ from msgpack import _cmsgpack
55
66 has_ext = True
77except ImportError :
@@ -17,14 +17,14 @@ def profile(name, func):
1717
1818def simple (name , data ):
1919 if has_ext :
20- packer = _packer .Packer ()
20+ packer = _cmsgpack .Packer ()
2121 profile ("packing %s (ext)" % name , lambda : packer .pack (data ))
2222 packer = fallback .Packer ()
2323 profile ("packing %s (fallback)" % name , lambda : packer .pack (data ))
2424
2525 data = packer .pack (data )
2626 if has_ext :
27- profile ("unpacking %s (ext)" % name , lambda : _unpacker .unpackb (data ))
27+ profile ("unpacking %s (ext)" % name , lambda : _cmsgpack .unpackb (data ))
2828 profile ("unpacking %s (fallback)" % name , lambda : fallback .unpackb (data ))
2929
3030
You can’t perform that action at this time.
0 commit comments