Ticket #10954: fix-serializer-example-code.diff

File fix-serializer-example-code.diff, 526 bytes (added by Glenn Maynard, 15 years ago)

If only the obvious worked: super(self)...

  • docs/topics/serialization.txt

     
    187187        def default(self, obj):
    188188            if isinstance(obj, Promise):
    189189                return force_unicode(obj)
    190             return obj
     190            return super(LazyEncoder, self).default(obj)
    191191
    192192.. _special encoder: http://svn.red-bean.com/bob/simplejson/tags/simplejson-1.7/docs/index.html
    193193
Back to Top