diff options
| author | Bob Halley <halley@dnspython.org> | 2019-01-05 10:07:02 -0800 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2019-01-05 10:07:02 -0800 |
| commit | 1e0c9a41844b4378c79fc81e83f003a11f8637d6 (patch) | |
| tree | afea8bb6a001c33f9c78f4fac9d837cb38ad32ab /dns/ipv6.py | |
| parent | 162bf99f0d7199de6bf98d57c99e1daf981aa88a (diff) | |
| download | dnspython-1e0c9a41844b4378c79fc81e83f003a11f8637d6.tar.gz | |
remove bytearray() wrapping used for python 2 compatibility
Diffstat (limited to 'dns/ipv6.py')
| -rw-r--r-- | dns/ipv6.py | 2 |
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() |
