﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
19159	loaddata reports DeserializationError instead of MemoryError	django@…	nobody	"The command `manage.py loaddata data.json` errors with DeserializationError instead of MemoryError.

files:
{{{
../lib/python2.7/site-packages/django/core/serializers/json.py
/usr/lib/python2.7/json/__init__.py
}}}

relevant code is `simplejson.load(stream)` inside the `try`:
{{{
def Deserializer(stream_or_string, **options):
    """"""
    Deserialize a stream or string of JSON data.
    """"""
    if isinstance(stream_or_string, basestring):
        stream = StringIO(stream_or_string)
    else:
        stream = stream_or_string
    try:
        for obj in PythonDeserializer(simplejson.load(stream), **options):
            yield obj
    except GeneratorExit:
        raise
    except Exception, e:
        # Map to deserializer error
        raise DeserializationError(e)
}}}"	Bug	closed	Core (Serialization)	dev	Normal	invalid			Accepted	1	0	0	0	0	0
