From 618a7a608c6e206878ec7d1f2def5369b7cd2bba Mon Sep 17 00:00:00 2001 From: Mark Pilgrim Date: Wed, 2 Sep 2009 15:50:12 -0400 Subject: [PATCH] spacing --- serializing.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/serializing.html b/serializing.html index 0ffbb7a..10fb84f 100644 --- a/serializing.html +++ b/serializing.html @@ -568,8 +568,7 @@ NameError: name 'entry' is not defined

json.load() doesn’t know anything about any conversion function you may have passed to json.dump(). What you need is the opposite of the to_json() function — a function that will take a custom-converted JSON object and convert it back to the original Python datatype. -


-# add this to customserializer.py
+
# add this to customserializer.py
 def from_json(json_object):                                   
     if '__class__' in json_object:                            
         if json_object['__class__'] == 'time.asctime':