diff options
Diffstat (limited to 'msgpack/_msgpack.pyx')
-rw-r--r-- | msgpack/_msgpack.pyx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/msgpack/_msgpack.pyx b/msgpack/_msgpack.pyx index 5394055..3316a22 100644 --- a/msgpack/_msgpack.pyx +++ b/msgpack/_msgpack.pyx @@ -73,7 +73,6 @@ cdef class Packer(object): if o is None: ret = msgpack_pack_nil(&self.pk) - #elif PyBool_Check(o): elif isinstance(o, bool): if o: ret = msgpack_pack_true(&self.pk) @@ -145,7 +144,7 @@ def packb(object o, default=None): packer = Packer(default=default) return packer.pack(o) -packs = packb +dumps = packs = packb cdef extern from "unpack.h": ctypedef struct msgpack_user: @@ -193,7 +192,7 @@ def unpackb(object packed, object object_hook=None, object list_hook=None): else: return None -unpacks = unpackb +loads = unpacks = unpackb def unpack(object stream, object object_hook=None, object list_hook=None): """unpack an object from stream.""" |