code: 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
docs: 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.