projects
/
zonemaker.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write to stdout only
[zonemaker.git]
/
zone-maker
diff --git
a/zone-maker
b/zone-maker
index 2d52a789ed4b7148ac6298b7c4aaabc1b4616519..d2669b6f95bbc5887a266a76ade23a4ecf13f643 100755
(executable)
--- 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)
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:]:
if __name__ == "__main__":
for name in sys.argv[1:]: