1. Jesper Nøhr
  2. django-piston


Jesper Nøhr  committed 2f65bcd

cleaning up cset from RobotAdam a bit to be consistent with our style

  • Participants
  • Parent commits 5f2e107
  • Branches default

Comments (0)

Files changed (1)

File piston/utils.py

View file
  • Ignore whitespace
-from django.http import (HttpResponseNotAllowed, HttpResponseForbidden,
-    HttpResponse, HttpResponseBadRequest)
+from django.http import HttpResponseNotAllowed, HttpResponseForbidden, HttpResponse, HttpResponseBadRequest
 from django.core.urlresolvers import reverse
 from django.core.cache import cache
 from django import get_version as django_version
 from datetime import datetime, timedelta
-__version__ = '0.2.1'
+__version__ = '0.2.2'
 def get_version():
     return __version__
 class MimerDataException(Exception):
-    """Raised if the content_type and data don't match"""
+    """
+    Raised if the content_type and data don't match
+    """
+    pass
 class Mimer(object):
     TYPES = dict()
         Returns the content type of the request in all cases where it is
         different than a submitted form - application/x-www-form-urlencoded
         type_formencoded = "application/x-www-form-urlencoded"
         ctype = self.request.META.get('CONTENT_TYPE', type_formencoded)