#NEWLINE# def _set_default_serializer( self , name ) : #NEWLINE# #INDENT# '\n        Set the default serialization method used by this library.\n\n        :param name: The name of the registered serialization method.\n            For example, `json` (default), `pickle`, `yaml`, `msgpack`,\n            or any custom methods registered using :meth:`register`.\n\n        :raises SerializerNotInstalled: If the serialization method\n            requested is not available.\n        ' #NEWLINE# try : #NEWLINE# #INDENT# ( self . _default_content_type , self . _default_content_encoding , self . _default_encode ) = self . _encoders [ name ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# raise SerializerNotInstalled ( 'No encoder installed for {0}' . format ( name ) )