mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Roll back some changes to _compat.py
This commit is contained in:
parent
1fcb0ff264
commit
873cabd6ce
1 changed files with 6 additions and 0 deletions
|
@ -144,6 +144,12 @@ class IPv6AddressScoped(ipaddress.IPv6Address):
|
|||
|
||||
:param address:
|
||||
'''
|
||||
# pylint: disable-all
|
||||
if not hasattr(self, '_is_packed_binary'):
|
||||
# This method (below) won't be around for some Python 3 versions
|
||||
# and we need check this differently anyway
|
||||
self._is_packed_binary = lambda p: isinstance(p, bytes)
|
||||
# pylint: enable-all
|
||||
if isinstance(address, string_types) and '%' in address:
|
||||
buff = address.split('%')
|
||||
if len(buff) != 2:
|
||||
|
|
Loading…
Add table
Reference in a new issue