(self)
| 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 | |
| 369 | country_timezones = _CountryTimezoneDict() |
nothing calls this directly
no test coverage detected