parameters: (icuDir)
return_statement: return (zones, links)
docstring: Read the ICU legacy time zones from `icuTzDir`/tools/tzcode/icuzones
          and returns the tuple (zones, links).
docstring_summary: Read the ICU legacy time zones from `icuTzDir`/tools/tzcode/icuzones
          and returns the tuple (zones, links).
docstring_tokens: Read the ICU legacy time zones from icuTzDir / tools / tzcode / icuzones and returns the tuple ( zones links ) .
function: def readICULegacyZones(icuDir):
      """ Read the ICU legacy time zones from `icuTzDir`/tools/tzcode/icuzones
          and returns the tuple (zones, links).
      """
      tzdir = TzDataDir(os.path.join(icuDir, "tools/tzcode"))
      (zones, links) = readIANAFiles(tzdir, ["icuzones"])
  
      # Remove the ICU placeholder time zone "Etc/Unknown".
      zones.remove(Zone("Etc/Unknown"))
  
      # tzdata2017c removed the link Canada/East-Saskatchewan -> America/Regina,
      # but it is still present in ICU sources. Manually tag it as a legacy time
      # zone so our tables are kept consistent with IANA.
      links[Zone("Canada/East-Saskatchewan")] = "America/Regina"
  
      return (zones, links)
function_tokens: def readICULegacyZones ( icuDir ) : tzdir = TzDataDir ( os . path . join ( icuDir , "tools/tzcode" ) ) ( zones , links ) = readIANAFiles ( tzdir , [ "icuzones" ] ) # Remove the ICU placeholder time zone "Etc/Unknown". zones . remove ( Zone ( "Etc/Unknown" ) ) # tzdata2017c removed the link Canada/East-Saskatchewan -> America/Regina, # but it is still present in ICU sources. Manually tag it as a legacy time # zone so our tables are kept consistent with IANA. links [ Zone ( "Canada/East-Saskatchewan" ) ] = "America/Regina" return ( zones , links )