Fixed YAMLParser = None

This commit is contained in:
Jens Alm 2011-07-02 19:19:45 +02:00
parent 20c7e605c9
commit 3e0a978dd9

View File

@ -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):
"""