mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-22 21:33:17 +00:00
Add ext type support to fallback.Unpacker.
This commit is contained in:
parent
f162bf6f79
commit
d9439204c7
2 changed files with 60 additions and 16 deletions
|
@ -2,6 +2,10 @@
|
|||
from msgpack._version import version
|
||||
from msgpack.exceptions import *
|
||||
|
||||
from collections import namedtuple
|
||||
|
||||
ExtType = namedtuple('ExtType', 'code data')
|
||||
|
||||
import os
|
||||
if os.environ.get('MSGPACK_PUREPYTHON'):
|
||||
from msgpack.fallback import Packer, unpack, unpackb, Unpacker
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue