code: def join_locale(comps):
      '''
      Join a locale specifier split in the format returned by split_locale.
      '''
      loc = comps['language']
      if comps.get('territory'):
          loc += '_' + comps['territory']
      if comps.get('codeset'):
          loc += '.' + comps['codeset']
      if comps.get('modifier'):
          loc += '@' + comps['modifier']
      if comps.get('charmap'):
          loc += ' ' + comps['charmap']
      return lof join_locale(comps):
      '''
      Join a locale specifier split in the format returned by split_locale.
      '''
      loc = comps['language']
      if comps.get('territory'):
          loc += '_' + comps['territory']
      if comps.get('codeset'):
          loc += '.' + comps['codeset']
      if comps.get('modifier'):
          loc += '@' + comps['modifier']
      if comps.get('charmap'):
          loc += ' ' + comps['charmap']
      return loc
docs: Join a locale specifier split in the format returned by split_locale.