summaryrefslogtreecommitdiff
path: root/dns/ipv6.py
diff options
context:
space:
mode:
authorBob Halley <halley@dnspython.org>2019-01-05 10:07:02 -0800
committerBob Halley <halley@dnspython.org>2019-01-05 10:07:02 -0800
commit1e0c9a41844b4378c79fc81e83f003a11f8637d6 (patch)
treeafea8bb6a001c33f9c78f4fac9d837cb38ad32ab /dns/ipv6.py
parent162bf99f0d7199de6bf98d57c99e1daf981aa88a (diff)
downloaddnspython-1e0c9a41844b4378c79fc81e83f003a11f8637d6.tar.gz
remove bytearray() wrapping used for python 2 compatibility
Diffstat (limited to 'dns/ipv6.py')
-rw-r--r--dns/ipv6.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/dns/ipv6.py b/dns/ipv6.py
index e501a41..1f703a6 100644
--- a/dns/ipv6.py
+++ b/dns/ipv6.py
@@ -117,7 +117,7 @@ def inet_aton(text):
#
m = _v4_ending.match(text)
if not m is None:
- b = bytearray(dns.ipv4.inet_aton(m.group(2)))
+ b = dns.ipv4.inet_aton(m.group(2))
text = (u"{}:{:02x}{:02x}:{:02x}{:02x}".format(m.group(1).decode(),
b[0], b[1], b[2],
b[3])).encode()