From a458f6588ece114208aeabc471e8ee04993ccd2f Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Sun, 31 Mar 2013 12:18:54 +0100 Subject: [PATCH] do not print empty rdatasets --- dns/node.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dns/node.py b/dns/node.py index f480610a..e74004f6 100644 --- a/dns/node.py +++ b/dns/node.py @@ -49,7 +49,8 @@ class Node(object): s = StringIO.StringIO() for rds in self.rdatasets: - print >> s, rds.to_text(name, **kw) + if len(rds) > 0: + print >> s, rds.to_text(name, **kw) return s.getvalue()[:-1] def __repr__(self): -- 2.47.3