PEP8fying
This commit is contained in:
parent
3a2280bd6a
commit
732626c176
@ -46,4 +46,3 @@ class UnknownFunction(ClientSideError):
|
||||
|
||||
def __unicode__(self):
|
||||
return _(u"Unknown function name: %s") % (self.name)
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user