| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 692e0ee commit 4e10222
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -159,7 +159,7 @@ It is also possible to pack/unpack custom data types. Here is an example for | |||
| 159 | 159 | } | |
| 160 | 160 | ||
| 161 | 161 | def decode_datetime(obj): | |
| 162 | - if b'__datetime__' in obj: | ||
| 162 | + if '__datetime__' in obj: | ||
| 163 | 163 | obj = datetime.datetime.strptime(obj["as_str"], "%Y%m%dT%H:%M:%S.%f") | |
| 164 | 164 | return obj | |
| 165 | 165 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments