PEP8fying

This commit is contained in:
Christophe de Vienne 2011-09-21 22:25:11 +02:00
parent 3a2280bd6a
commit 732626c176
2 changed files with 5 additions and 2 deletions

View File

@ -46,4 +46,3 @@ class UnknownFunction(ClientSideError):
def __unicode__(self):
return _(u"Unknown function name: %s") % (self.name)

View File

@ -90,7 +90,11 @@ def binary_fromjson(datatype, value):
class RestJsonProtocol(RestProtocol):
name = 'REST+Json'
dataformat = 'json'
content_types = ['application/json', 'application/javascript', 'text/json', '', None]
content_types = [
'application/json',
'application/javascript',
'text/javascript',
'']
def decode_arg(self, value, arg):
return fromjson(arg.datatype, value)