summaryrefslogtreecommitdiff
path: root/trunk/ipaddr.py
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/ipaddr.py')
-rw-r--r--trunk/ipaddr.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/trunk/ipaddr.py b/trunk/ipaddr.py
index 0e35858..dff40d3 100644
--- a/trunk/ipaddr.py
+++ b/trunk/ipaddr.py
@@ -1758,10 +1758,9 @@ class _BaseV6(object):
Note:
This doesn't try to verify that the address is a teredo address
"""
- server_bits = self._explode_shorthand_ip_string().split(':')[2:4]
- client_bits = self._explode_shorthand_ip_string().split(':')[6:]
- return (IPv4Address(int(''.join(server_bits), 16)),
- IPv4Address(int(''.join(client_bits), 16) ^ 0xFFFFFFFF))
+ bits = self._explode_shorthand_ip_string().split(':')
+ return (IPv4Address(int(''.join(bits[2:4]), 16)),
+ IPv4Address(int(''.join(bits[6:]), 16) ^ 0xFFFFFFFF))
class IPv6Address(_BaseV6, _BaseIP):