1
1
Fork 0
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:
Scott Kitterman 2015-05-23 12:59:53 -04:00
parent e7a92ec440
commit 88d0cca5e9

View file

@ -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__ = [