(cls, zonedir=None)
| 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): |
no test coverage detected