aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/parsers.py
diff options
context:
space:
mode:
authorSébastien Piquemal2012-02-10 10:18:39 +0200
committerSébastien Piquemal2012-02-10 10:18:39 +0200
commitdb0b01037a95946938ccd44eae14d8779bfff1a9 (patch)
tree120509363c6c1fa6491221a0b6d5835a9d84463e /djangorestframework/parsers.py
parent2cdff1b01e3aca6c56cef433e786e3ae75362739 (diff)
downloaddjango-rest-framework-db0b01037a95946938ccd44eae14d8779bfff1a9.tar.bz2
made suggested fixes
Diffstat (limited to 'djangorestframework/parsers.py')
-rw-r--r--djangorestframework/parsers.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py
index c041d7ce..d41e07e8 100644
--- a/djangorestframework/parsers.py
+++ b/djangorestframework/parsers.py
@@ -89,7 +89,7 @@ class JSONParser(BaseParser):
return (json.load(stream), None)
except ValueError, exc:
raise ImmediateResponse(
- content={'detail': 'JSON parse error - %s' % unicode(exc)},
+ {'detail': 'JSON parse error - %s' % unicode(exc)},
status=status.HTTP_400_BAD_REQUEST)
@@ -112,7 +112,7 @@ if yaml:
return (yaml.safe_load(stream), None)
except ValueError, exc:
raise ImmediateResponse(
- content={'detail': 'YAML parse error - %s' % unicode(exc)},
+ {'detail': 'YAML parse error - %s' % unicode(exc)},
status=status.HTTP_400_BAD_REQUEST)
else:
YAMLParser = None
@@ -172,7 +172,7 @@ class MultiPartParser(BaseParser):
django_parser = DjangoMultiPartParser(self.view.request.META, stream, upload_handlers)
except MultiPartParserError, exc:
raise ImmediateResponse(
- content={'detail': 'multipart parse error - %s' % unicode(exc)},
+ {'detail': 'multipart parse error - %s' % unicode(exc)},
status=status.HTTP_400_BAD_REQUEST)
return django_parser.parse()