diff options
author | Bob Halley <halley@dnspython.org> | 2013-03-31 12:18:54 +0100 |
---|---|---|
committer | Bob Halley <halley@dnspython.org> | 2013-03-31 12:18:54 +0100 |
commit | a458f6588ece114208aeabc471e8ee04993ccd2f (patch) | |
tree | 33c6de17e5d897265f3e816f80abfeba4efb90fd | |
parent | c5f767e6699c8ce85c4970e3a8d945b2b0b3c60f (diff) | |
download | dnspython-a458f6588ece114208aeabc471e8ee04993ccd2f.tar.gz |
do not print empty rdatasets
-rw-r--r-- | dns/node.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dns/node.py b/dns/node.py index f480610..e74004f 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): |