Add ext type support to fallback.Unpacker.

This commit is contained in:
INADA Naoki 2013-10-17 11:29:36 +09:00
parent f162bf6f79
commit d9439204c7
2 changed files with 60 additions and 16 deletions

View file

@ -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