aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/parsers.py
diff options
context:
space:
mode:
authorJens Alm2011-07-02 19:19:45 +0200
committerJens Alm2011-07-02 19:19:45 +0200
commit3e0a978dd97a55a5db072584a2bba639ed790b82 (patch)
tree1bbb7b26fb0d8b530743615af15b32149a35e98b /djangorestframework/parsers.py
parent20c7e605c987bbfec23fbd305e71168b21672bec (diff)
downloaddjango-rest-framework-3e0a978dd97a55a5db072584a2bba639ed790b82.tar.bz2
Fixed YAMLParser = None
Diffstat (limited to 'djangorestframework/parsers.py')
-rw-r--r--djangorestframework/parsers.py3
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):
"""