changeset 316 | 41bd6688b142 |
parent 308 | 08176bed21e3 |
child 323 | 9b3cbd8687eb |
--- a/pvl/dns/zone.py Thu Dec 19 02:17:44 2013 +0200 +++ b/pvl/dns/zone.py Thu Dec 19 02:50:59 2013 +0200 @@ -225,7 +225,13 @@ self.timestamp = timestamp self.comment = comment - def __str__ (self) : + def __unicode__ (self) : + return u"{indent}{parts}".format( + indent = u"\t" if self.indent else '', + parts = u'\t'.join(self.parts), + ) + + def __repr__ (self) : return "{file}:{lineno}".format(file=self.file, lineno=self.lineno) class ZoneRecord (object) :