MCPcopy Create free account
hub / github.com/scottrogowski/code2flow / _fill

Method _fill

tests/test_code/py/pytz/__init__.py:349–366  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

347 return self[iso3166_code]
348
349 def _fill(self):
350 data = {}
351 zone_tab = open_resource('zone.tab')
352 try:
353 for line in zone_tab:
354 line = line.decode('UTF-8')
355 if line.startswith('#'):
356 continue
357 code, coordinates, zone = line.split(None, 4)[:3]
358 if zone not in all_timezones_set: # noqa
359 continue
360 try:
361 data[code].append(zone)
362 except KeyError:
363 data[code] = [zone]
364 self.data = data
365 finally:
366 zone_tab.close()
367
368
369country_timezones = _CountryTimezoneDict()

Callers

nothing calls this directly

Calls 1

open_resourceFunction · 0.85

Tested by

no test coverage detected