X-Git-Url: https://git.ralfj.de/zonemaker.git/blobdiff_plain/dc522c047192e9e5835cb4a8a4a583d130a11ebb..aa7f7564c6e419cff1c414dc79ec30e11bb87163:/zone-maker?ds=sidebyside diff --git a/zone-maker b/zone-maker index 2d52a78..676bf9c 100755 --- a/zone-maker +++ b/zone-maker @@ -1,7 +1,7 @@ #!/usr/bin/python3 import sys, os from zonemaker.zone import Zone -from typing import Sequence +#import typing def load_module(name, path, write_bytecode = False): import importlib.machinery @@ -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:]: