mirror of
				https://github.com/msgpack/msgpack-python.git
				synced 2025-10-31 01:20:53 +00:00 
			
		
		
		
	Fix an example in README.md (#423)
This commit is contained in:
		
							parent
							
								
									692e0ee8ff
								
							
						
					
					
						commit
						4e10222b51
					
				
					 1 changed files with 1 additions and 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): |     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") |             obj = datetime.datetime.strptime(obj["as_str"], "%Y%m%dT%H:%M:%S.%f") | ||||||
|         return obj |         return obj | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Kevin Tewouda
						Kevin Tewouda