diff options
| author | Tom Christie | 2012-09-26 12:40:11 +0100 | 
|---|---|---|
| committer | Tom Christie | 2012-09-26 12:40:11 +0100 | 
| commit | 09a445b257532be69ffab69a3f62b84bfa90463d (patch) | |
| tree | 58275c9e3d855b61be45d5ad7bf71235e633c7c8 /rest_framework/parsers.py | |
| parent | 728e92f06a86bb18baa73f42433468c4d042affd (diff) | |
| download | django-rest-framework-09a445b257532be69ffab69a3f62b84bfa90463d.tar.bz2 | |
Bits of cleanup
Diffstat (limited to 'rest_framework/parsers.py')
| -rw-r--r-- | rest_framework/parsers.py | 19 | 
1 files changed, 3 insertions, 16 deletions
| diff --git a/rest_framework/parsers.py b/rest_framework/parsers.py index a500060f..5151b252 100644 --- a/rest_framework/parsers.py +++ b/rest_framework/parsers.py @@ -34,8 +34,8 @@ class DataAndFiles(object):  class BaseParser(object):      """ -    All parsers should extend :class:`BaseParser`, specifying a :attr:`media_type` attribute, -    and overriding the :meth:`parse` method. +    All parsers should extend `BaseParser`, specifying a `media_type` +    attribute, and overriding the `.parse_stream()` method.      """      media_type = None @@ -66,7 +66,7 @@ class BaseParser(object):      def parse_stream(self, stream, **opts):          """ -        Given a *stream* to read from, return the deserialized output. +        Given a stream to read from, return the deserialized output.          Should return parsed data, or a DataAndFiles object consisting of the          parsed data and files.          """ @@ -234,16 +234,3 @@ class XMLParser(BaseParser):              pass          return value - - -DEFAULT_PARSERS = ( -    JSONParser, -    FormParser, -    MultiPartParser, -    XMLParser -) - -if yaml: -    DEFAULT_PARSERS += (YAMLParser, ) -else: -    YAMLParser = None | 
