summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2010-11-20 12:08:59 +0000
committerBob Halley <halley@nominum.com>2010-11-20 12:08:59 +0000
commit0e1704573622b77d2a00bb2f20f35dfaaf20af43 (patch)
tree744b442b3de013f7ab1973db33f6065aa3504cb9
parentc3de7038c09c1157ecfaf83b894c67cb021891bb (diff)
downloaddnspython-0e1704573622b77d2a00bb2f20f35dfaaf20af43.tar.gz
cleanup whitespace
-rw-r--r--dns/node.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/dns/node.py b/dns/node.py
index 07fff92..785a245 100644
--- a/dns/node.py
+++ b/dns/node.py
@@ -23,18 +23,18 @@ import dns.renderer
class Node(object):
"""A DNS node.
-
+
A node is a set of rdatasets
@ivar rdatasets: the node's rdatasets
@type rdatasets: list of dns.rdataset.Rdataset objects"""
__slots__ = ['rdatasets']
-
+
def __init__(self):
"""Initialize a DNS node.
"""
-
+
self.rdatasets = [];
def to_text(self, name, **kw):
@@ -46,7 +46,7 @@ class Node(object):
@type name: dns.name.Name object
@rtype: string
"""
-
+
s = StringIO.StringIO()
for rds in self.rdatasets:
print >> s, rds.to_text(name, **kw)
@@ -54,7 +54,7 @@ class Node(object):
def __repr__(self):
return '<DNS node ' + str(id(self)) + '>'
-
+
def __eq__(self, other):
"""Two nodes are equal if they have the same rdatasets.
@@ -73,7 +73,7 @@ class Node(object):
def __ne__(self, other):
return not self.__eq__(other)
-
+
def __len__(self):
return len(self.rdatasets)
@@ -159,7 +159,7 @@ class Node(object):
def replace_rdataset(self, replacement):
"""Replace an rdataset.
-
+
It is not an error if there is no rdataset matching I{replacement}.
Ownership of the I{replacement} object is transferred to the node;