X-Git-Url: https://git.ralfj.de/zonemaker.git/blobdiff_plain/d1f1548719487b0107be8befe090483401abbe52..62c4aa98cb5889fdda183ac6b58a54bb1c7427b0:/zone-maker diff --git a/zone-maker b/zone-maker index 57f8afe..d2669b6 100755 --- a/zone-maker +++ b/zone-maker @@ -13,9 +13,8 @@ def load_module(name, path, write_bytecode = False): def make_zone(filename: str) -> None: zonefile = load_module(os.path.basename(filename), filename) - zones = zonefile.__zones__ # type: Sequence[Zone] - for zone in zones: - zone.write() + zone = zonefile.__zone__ # type: Zone + zone.write() if __name__ == "__main__": for name in sys.argv[1:]: