aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/parsers.py
diff options
context:
space:
mode:
authorTom Christie2012-10-14 22:43:07 +0100
committerTom Christie2012-10-14 22:43:07 +0100
commit551c86c43a71f7dee5cce68c5142714301f6196f (patch)
treeb9303172e27ea71b90dadf4c3a0dc303c1c0972e /rest_framework/parsers.py
parent7a89d7a770d310f8b72178c561fcd04e6c15e5c4 (diff)
downloaddjango-rest-framework-551c86c43a71f7dee5cce68c5142714301f6196f.tar.bz2
Documentation for parsers
Diffstat (limited to 'rest_framework/parsers.py')
-rw-r--r--rest_framework/parsers.py17
1 files changed, 0 insertions, 17 deletions
diff --git a/rest_framework/parsers.py b/rest_framework/parsers.py
index 5325a64b..672f6a16 100644
--- a/rest_framework/parsers.py
+++ b/rest_framework/parsers.py
@@ -98,23 +98,6 @@ class YAMLParser(BaseParser):
raise ParseError('YAML parse error - %s' % unicode(exc))
-class PlainTextParser(BaseParser):
- """
- Plain text parser.
- """
-
- media_type = 'text/plain'
-
- def parse_stream(self, stream, **opts):
- """
- Returns a 2-tuple of `(data, files)`.
-
- `data` will simply be a string representing the body of the request.
- `files` will always be `None`.
- """
- return stream.read()
-
-
class FormParser(BaseParser):
"""
Parser for form data.