parameters: (label=None, kwargs=None, attributes=None)
return_statement: return ' '.join(result)
docstring: Return assembled DOT a_list string.
  
      >>> a_list('spam', {'spam': None, 'ham': 'ham ham', 'eggs': ''})
      'label=spam eggs="" ham="ham ham"'
docstring_summary: Return assembled DOT a_list string.
docstring_tokens: Return assembled DOT a_list string .
function: def a_list(label=None, kwargs=None, attributes=None):
      """Return assembled DOT a_list string.
  
      >>> a_list('spam', {'spam': None, 'ham': 'ham ham', 'eggs': ''})
      'label=spam eggs="" ham="ham ham"'
      """
      result = ['label=%s' % quote(label)] if label is not None else []
      if kwargs:
          items = ['%s=%s' % (quote(k), quote(v))
                   for k, v in tools.mapping_items(kwargs) if v is not None]
          result.extend(items)
      if attributes:
          if hasattr(attributes, 'items'):
              attributes = tools.mapping_items(attributes)
          items = ['%s=%s' % (quote(k), quote(v))
                   for k, v in attributes if v is not None]
          result.extend(items)
      return ' '.join(result)
function_tokens: def a_list ( label = None , kwargs = None , attributes = None ) : result = [ 'label=%s' % quote ( label ) ] if label is not None else [ ] if kwargs : items = [ '%s=%s' % ( quote ( k ) , quote ( v ) ) for k , v in tools . mapping_items ( kwargs ) if v is not None ] result . extend ( items ) if attributes : if hasattr ( attributes , 'items' ) : attributes = tools . mapping_items ( attributes ) items = [ '%s=%s' % ( quote ( k ) , quote ( v ) ) for k , v in attributes if v is not None ] result . extend ( items ) return ' ' . join ( result )