parameters: (default, *args)
return_statement: return built
docstring: Turns a list of maps, lists, or scalars into a single map.
      Used to build the SELF_CLOSING_TAGS, NESTABLE_TAGS, and
      NESTING_RESET_TAGS maps out of lists and partial maps.
docstring_summary: Turns a list of maps, lists, or scalars into a single map.
      Used to build the SELF_CLOSING_TAGS, NESTABLE_TAGS, and
      NESTING_RESET_TAGS maps out of lists and partial maps.
docstring_tokens: Turns a list of maps lists or scalars into a single map . Used to build the SELF_CLOSING_TAGS NESTABLE_TAGS and NESTING_RESET_TAGS maps out of lists and partial maps .
function: def buildTagMap(default, *args):
      """Turns a list of maps, lists, or scalars into a single map.
      Used to build the SELF_CLOSING_TAGS, NESTABLE_TAGS, and
      NESTING_RESET_TAGS maps out of lists and partial maps."""
      built = {}
      for portion in args:
          if hasattr(portion, 'items'):
              #It's a map. Merge it.
              for k,v in portion.items():
                  built[k] = v
          elif isList(portion):
              #It's a list. Map each item to the default.
              for k in portion:
                  built[k] = default
          else:
              #It's a scalar. Map it to the default.
              built[portion] = default
      return built
function_tokens: def buildTagMap ( default , * args ) : built = { } for portion in args : if hasattr ( portion , 'items' ) : #It's a map. Merge it. for k , v in portion . items ( ) : built [ k ] = v elif isList ( portion ) : #It's a list. Map each item to the default. for k in portion : built [ k ] = default else : #It's a scalar. Map it to the default. built [ portion ] = default return built