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

Method _fill

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

Source from the content-addressed store, hash-verified

376 Australia
377 '''
378 def _fill(self):
379 data = {}
380 zone_tab = open_resource('iso3166.tab')
381 try:
382 for line in zone_tab.readlines():
383 line = line.decode('UTF-8')
384 if line.startswith('#'):
385 continue
386 code, name = line.split(None, 1)
387 data[code] = name.strip()
388 self.data = data
389 finally:
390 zone_tab.close()
391
392
393country_names = _CountryNameDict()

Callers 5

__getitem__Method · 0.45
__contains__Method · 0.45
__iter__Method · 0.45
__len__Method · 0.45
keysMethod · 0.45

Calls 1

open_resourceFunction · 0.85

Tested by

no test coverage detected