Ticket #10006: jsondecoder.patch

File jsondecoder.patch, 623 bytes (added by markmuetz, 16 years ago)

Patch to fix problem with older versions of python json libs

  • django/utils/simplejson/__init__.py

     
    119119if not use_system_version:
    120120    try:
    121121        from json import *      # Python 2.6 preferred over local copy.
     122        JSONDecoder             # Make sure this is the right json module.
    122123        use_system_version = True
    123124    except ImportError:
    124125        pass
     126    except NameError:
     127        pass
    125128
    126129# If all else fails, we have a bundled version that can be used.
    127130if not use_system_version:
Back to Top