MCPcopy Index your code
hub / github.com/python/cpython / zonenames

Method zonenames

Lib/test/datetimetester.py:6730–6742  ·  view source on GitHub ↗
(cls, zonedir=None)

Source from the content-addressed store, hash-verified

6728
6729 @classmethod
6730 def zonenames(cls, zonedir=None):
6731 if zonedir is None:
6732 zonedir = cls.zoneroot
6733 zone_tab = os.path.join(zonedir, 'zone.tab')
6734 try:
6735 f = open(zone_tab)
6736 except OSError:
6737 return
6738 with f:
6739 for line in f:
6740 line = line.strip()
6741 if line and not line.startswith('#'):
6742 yield line.split()[2]
6743
6744 @classmethod
6745 def stats(cls, start_year=1):

Callers 3

statsMethod · 0.80
__init__Method · 0.80

Calls 5

openFunction · 0.50
joinMethod · 0.45
stripMethod · 0.45
startswithMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected