Skip to content

Commit

Permalink
Fix an example in README.md (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
lewoudar committed May 13, 2020
1 parent 692e0ee commit 4e10222
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 4e10222

Please sign in to comment.