mirror of
https://github.com/msgpack/msgpack-python.git
synced 2025-10-31 17:40:54 +00:00
Packing ExtType and some cleanup
This commit is contained in:
parent
aa68c9b833
commit
96bcd76f49
7 changed files with 130 additions and 168 deletions
|
|
@ -26,6 +26,7 @@ def pack(o, stream, **kwargs):
|
|||
packer = Packer(**kwargs)
|
||||
stream.write(packer.pack(o))
|
||||
|
||||
|
||||
def packb(o, **kwargs):
|
||||
"""
|
||||
Pack object `o` and return packed bytes
|
||||
|
|
@ -40,4 +41,3 @@ loads = unpackb
|
|||
|
||||
dump = pack
|
||||
dumps = packb
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue