mirror of
https://github.com/pypa/pip
synced 2023-12-13 21:30:23 +01:00
Update __init__.py
Add support in pip/compat for use of ipaddr in addition to ipaddress, this time with nested try accept.
This commit is contained in:
parent
e7a92ec440
commit
88d0cca5e9
1 changed files with 6 additions and 1 deletions
|
@ -16,7 +16,12 @@ except ImportError:
|
|||
try:
|
||||
import ipaddress
|
||||
except ImportError:
|
||||
from pip._vendor import ipaddress
|
||||
try:
|
||||
from pip._vendor import ipaddress
|
||||
except ImportError:
|
||||
import ipaddr as ipaddress
|
||||
ipaddress.ip_address = ipaddress.IPAddress
|
||||
ipaddress.ip_network = ipaddress.IPNetwork
|
||||
|
||||
|
||||
__all__ = [
|
||||
|
|
Loading…
Reference in a new issue