X-Git-Url: https://git.ralfj.de/zonemaker.git/blobdiff_plain/dc522c047192e9e5835cb4a8a4a583d130a11ebb..62c4aa98cb5889fdda183ac6b58a54bb1c7427b0:/zone-maker?ds=sidebyside diff --git a/zone-maker b/zone-maker index 2d52a78..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(sys.stdout) + zone = zonefile.__zone__ # type: Zone + zone.write() if __name__ == "__main__": for name in sys.argv[1:]: