summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorKevin Tewouda <rollandkev@yahoo.fr>2020-05-13 06:41:15 +0200
committerGitHub <noreply@github.com>2020-05-13 13:41:15 +0900
commit4e10222b5116806864a91fd9f79a70869e0a43c1 (patch)
tree3efbb08d67cab408224289a0e3b7803ec821685a /README.md
parent692e0ee8ff66686dd423aae69b248b67c3bf9ed4 (diff)
downloadmsgpack-python-4e10222b5116806864a91fd9f79a70869e0a43c1.tar.gz
Fix an example in README.md (#423)
Diffstat (limited to 'README.md')
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index aeeee3a..ac52d94 100644
--- a/README.md
+++ b/README.md
@@ -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