diff options
| author | Bernhard Boser <boser@server.home> | 2020-11-12 12:28:40 -0800 |
|---|---|---|
| committer | Scott Shawcroft <scott@tannewt.org> | 2020-12-01 18:38:47 -0800 |
| commit | 44bc75af37a464eb6e5ba26bab19f2150d58044d (patch) | |
| tree | d2a5f5590d65f2eccb5503da79279db587cd16c4 /shared-bindings | |
| parent | f91932d78374bec0fe6225f53a487919a956b76f (diff) | |
output little endian; update example
Diffstat (limited to 'shared-bindings')
| -rw-r--r-- | shared-bindings/msgpack/__init__.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/shared-bindings/msgpack/__init__.c b/shared-bindings/msgpack/__init__.c index 720d88109..a222177f7 100644 --- a/shared-bindings/msgpack/__init__.c +++ b/shared-bindings/msgpack/__init__.c @@ -34,12 +34,12 @@ //| //| Example: //| import msgpack -//| from io import StringIO +//| from io import BytesIO //| -//| s = StringIO() -//| msgpack.pack({'list': [True, False, None, 1, 'abc'], 'str': 'blah'}, s) -//| s.seek(0) -//| print(msgpack.unpack(s))""" +//| b = BytesIO() +//| msgpack.pack({'list': [True, False, None, 1, 'abc'], 'str': 'blah'}, b) +//| b.seek(0) +//| print(msgpack.unpack(b))""" //| //| def pack(obj: Any, buffer: WriteableBuffer) -> None: |
