From 4b221937f5e8ca0fd6bc8d3331529f3502615b38 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 21 Mar 2015 13:36:00 +0100 Subject: [PATCH] make more intensive use of --- zone.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone.py b/zone.py index b0d055e..1e1251a 100644 --- a/zone.py +++ b/zone.py @@ -147,7 +147,7 @@ class RR: return self def __str__(self): - return column_widths((self.path, time(self.TTL), self.recordType, self.data), (32, 8, 8)) + return column_widths((self.path, time(self.TTL), self.recordType, self.data), (8*3, 8, 8)) ## Record types class A: @@ -369,5 +369,5 @@ class Zone: def write(self) -> None: print(";; {} zone file, generated by zonemaker on {}".format(self._name, datetime.datetime.now())) print("$ORIGIN {}".format(self._name)) - for rr in map(lambda rr: rr.relativize(self._name).mapTTL(self.getTTL), self.generate_rrs()): + for rr in map(lambda rr: rr.mapTTL(self.getTTL), self.generate_rrs()): print(rr) -- 2.30.2