Bug: 132083173

Clone this repo:
  1. f3ba467 Add in TEST_MAPPING for acloud unittests. by Kevin Cheng · 4 weeks ago master
  2. 9318fe5 Merge commit 'd91da79' into import am: f8b29e13fb by Kevin Cheng · 3 months ago platform-tools-29.0.1 platform-tools-29.0.2
  3. f8b29e1 Merge commit 'd91da79' into import by Kevin Cheng · 3 months ago
  4. c015c6c Initial empty repository by Inna Palant · 4 months ago
  5. d91da79 release 1.0.22 by Philipp Hagemeister · 1 year, 4 months ago


Python 3.3+'s ipaddress for Python 2.6, 2.7, 3.2.

Note that as in Python 3.3+ you must use character strings and not byte strings for textual IP address representations:

>>> from __future__ import unicode_literals
>>> ipaddress.ip_address('')


>>> ipaddress.ip_address(u'')

but not:

>>> ipaddress.ip_address(b'')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "ipaddress.py", line 163, in ip_address
    ' a unicode object?' % address)
ipaddress.AddressValueError: '' does not appear to be an IPv4 or IPv6 address. Did you pass in a bytes (str in Python 2) instead of a unicode object?