#NEWLINE# def deserialize( self , meth , content_type , body ) : #NEWLINE# #INDENT# meth_deserializers = getattr ( meth , 'wsgi_deserializers' , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) #NEWLINE# try : #NEWLINE# #INDENT# mtype = _MEDIA_TYPE_MAP . get ( content_type , content_type ) #NEWLINE# if ( mtype in meth_deserializers ) : #NEWLINE# #INDENT# deserializer = meth_deserializers [ mtype ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# deserializer = self . default_deserializers [ meth_deserializers ] #NEWLINE# #UNINDENT# #UNINDENT# except ( KeyError , TypeError ) : #NEWLINE# #INDENT# raise exception . InvalidContentType ( content_type = content_type ) #NEWLINE# #UNINDENT# if ( hasattr ( deserializer , 'want_controller' ) and deserializer . want_controller ) : #NEWLINE# #INDENT# return deserializer ( self . controller ) . deserialize ( body ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return deserializer ( ) . deserialize ( body )