summaryrefslogtreecommitdiff
path: root/dns/ipv6.py
diff options
context:
space:
mode:
authorBob Halley <halley@nominum.com>2010-01-14 14:51:06 -0800
committerBob Halley <halley@nominum.com>2010-01-14 14:51:06 -0800
commit53cb0eb5cfb463ebd0fdad55026ba25ac5c898d4 (patch)
tree10328f74009a1bdb93a5b924df5f1610417e370c /dns/ipv6.py
parent4fbaa1dce221a1bd1b24c5c5e88bab088c13be9f (diff)
downloaddnspython-53cb0eb5cfb463ebd0fdad55026ba25ac5c898d4.tar.gz
create exceptions with arguments as "raise E(args)" instead of "raise E, args"
Diffstat (limited to 'dns/ipv6.py')
-rw-r--r--dns/ipv6.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/dns/ipv6.py b/dns/ipv6.py
index ec25ba2..33c6713 100644
--- a/dns/ipv6.py
+++ b/dns/ipv6.py
@@ -32,7 +32,7 @@ def inet_ntoa(address):
"""
if len(address) != 16:
- raise ValueError, "IPv6 addresses are 16 bytes long"
+ raise ValueError("IPv6 addresses are 16 bytes long")
hex = address.encode('hex_codec')
chunks = []
i = 0
@@ -95,13 +95,13 @@ _colon_colon_end = re.compile(r'.*::$')
def inet_aton(text):
"""Convert a text format IPv6 address into network format.
-
+
@param text: the textual address
@type text: string
@rtype: string
@raises dns.exception.SyntaxError: the text was not properly formatted
"""
-
+
#
# Our aim here is not something fast; we just want something that works.
#