MCPcopy Index your code
hub / github.com/RustPython/RustPython / zonenames

Method zonenames

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

Source from the content-addressed store, hash-verified

6541
6542 @classmethod
6543 def zonenames(cls, zonedir=None):
6544 if zonedir is None:
6545 zonedir = cls.zoneroot
6546 zone_tab = os.path.join(zonedir, 'zone.tab')
6547 try:
6548 f = open(zone_tab)
6549 except OSError:
6550 return
6551 with f:
6552 for line in f:
6553 line = line.strip()
6554 if line and not line.startswith('#'):
6555 yield line.split()[2]
6556
6557 @classmethod
6558 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