diff options
| author | Kevin Tewouda <rollandkev@yahoo.fr> | 2020-05-13 06:41:15 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-13 13:41:15 +0900 |
| commit | 4e10222b5116806864a91fd9f79a70869e0a43c1 (patch) | |
| tree | 3efbb08d67cab408224289a0e3b7803ec821685a | |
| parent | 692e0ee8ff66686dd423aae69b248b67c3bf9ed4 (diff) | |
| download | msgpack-python-4e10222b5116806864a91fd9f79a70869e0a43c1.tar.gz | |
Fix an example in README.md (#423)
| -rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -159,7 +159,7 @@ It is also possible to pack/unpack custom data types. Here is an example for } def decode_datetime(obj): - if b'__datetime__' in obj: + if '__datetime__' in obj: obj = datetime.datetime.strptime(obj["as_str"], "%Y%m%dT%H:%M:%S.%f") return obj |
