mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Add Py3.4 old implementation's fix
This commit is contained in:
parent
1c02a312c5
commit
f52ea0be7c
1 changed files with 5 additions and 0 deletions
|
@ -160,6 +160,11 @@ class IPv6AddressScoped(ipaddress.IPv6Address):
|
|||
# and this type is needed to be checked differently
|
||||
self._is_packed_binary = lambda p: isinstance(p, bytes)
|
||||
|
||||
# Python 3.4 fix. Versions higher are simply not affected
|
||||
# https://github.com/python/cpython/blob/3.4/Lib/ipaddress.py#L543-L544
|
||||
self._version = 6
|
||||
self._max_prefixlen = ipaddress.IPV6LENGTH
|
||||
|
||||
# Efficient constructor from integer.
|
||||
if isinstance(address, integer_types):
|
||||
self._check_int_address(address)
|
||||
|
|
Loading…
Add table
Reference in a new issue