summaryrefslogtreecommitdiff
path: root/python/msgpack/_msgpack.pyx
diff options
context:
space:
mode:
authorNaoki INADA <inada-n@eagle>2009-07-12 09:29:11 +0900
committerNaoki INADA <inada-n@eagle>2009-07-12 09:29:11 +0900
commit900785e1aa2e031a4496f8c2a30bb95d0c950b9b (patch)
tree8572da88af0822fce55fd7b3256b425268ed8399 /python/msgpack/_msgpack.pyx
parent979efbb9501e14d43e2def8a80992494690a9d39 (diff)
downloadmsgpack-python-900785e1aa2e031a4496f8c2a30bb95d0c950b9b.tar.gz
Clean up
Diffstat (limited to 'python/msgpack/_msgpack.pyx')
-rw-r--r--python/msgpack/_msgpack.pyx6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/msgpack/_msgpack.pyx b/python/msgpack/_msgpack.pyx
index c455394..b407b92 100644
--- a/python/msgpack/_msgpack.pyx
+++ b/python/msgpack/_msgpack.pyx
@@ -163,7 +163,7 @@ cdef extern from "unpack.h":
object template_data(template_context* ctx)
-def unpacks(object packed_bytes):
+def unpackb(object packed_bytes):
"""Unpack packed_bytes to object. Returns unpacked object."""
cdef const_char_ptr p = packed_bytes
cdef template_context ctx
@@ -176,10 +176,12 @@ def unpacks(object packed_bytes):
else:
return None
+unpacks = unpackb
+
def unpack(object stream):
"""unpack from stream."""
packed = stream.read()
- return unpacks(packed)
+ return unpackb(packed)
cdef class UnpackIterator(object):
cdef object unpacker