          return dict2xml(obj)
  
  
  class TemplateRenderer(BaseRenderer):
      """
      A Base class provided for convenience.
 
</s> remove     'XMLRenderer'
 </s> add     'XMLRenderer',
    'YAMLRenderer' </s> remove                       XMLRenderer )
 </s> add                       XMLRenderer,
                      YAMLRenderer ) </s> remove from decimal import Decimal
import re
 </s> add 
class YAMLRenderer(BaseRenderer):
    """
    Renderer which serializes to YAML.
    """

    media_type = 'application/yaml'

    def render(self, obj=None, media_type=None):
        """
        Renders *obj* into serialized YAML.
        """
        if obj is None:
            return ''
        return yaml.dump(obj)
          return dict2xml(obj)
  
class YAMLRenderer(BaseRenderer):
    """
    Renderer which serializes to YAML.
    """

    media_type = 'application/yaml'

    def render(self, obj=None, media_type=None):
        """
        Renders *obj* into serialized YAML.
        """
        if obj is None:
            return ''
        return yaml.dump(obj)
  
  class TemplateRenderer(BaseRenderer):
      """
      A Base class provided for convenience.
keep add keep keep keep keep
 Very basic YAML support. Probably needs some tweaking, and definitely needs tests. 
djangorestframework/renderers.py