diff options
| author | Jens Alm | 2011-07-02 19:19:45 +0200 |
|---|---|---|
| committer | Jens Alm | 2011-07-02 19:19:45 +0200 |
| commit | 3e0a978dd97a55a5db072584a2bba639ed790b82 (patch) | |
| tree | 1bbb7b26fb0d8b530743615af15b32149a35e98b /djangorestframework/parsers.py | |
| parent | 20c7e605c987bbfec23fbd305e71168b21672bec (diff) | |
| download | django-rest-framework-3e0a978dd97a55a5db072584a2bba639ed790b82.tar.bz2 | |
Fixed YAMLParser = None
Diffstat (limited to 'djangorestframework/parsers.py')
| -rw-r--r-- | djangorestframework/parsers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/djangorestframework/parsers.py b/djangorestframework/parsers.py index 168d391e..41f15aa3 100644 --- a/djangorestframework/parsers.py +++ b/djangorestframework/parsers.py @@ -108,7 +108,8 @@ if yaml: except ValueError, exc: raise ErrorResponse(status.HTTP_400_BAD_REQUEST, {'detail': 'YAML parse error - %s' % unicode(exc)}) - +else: + YAMLParser = None class PlainTextParser(BaseParser): """ |
