Skip to content

Commit f5ac9aa

Browse files
author
pmoody
committed
correct the initial checked in version
1 parent 9e11568 commit f5ac9aa

File tree

5 files changed

+419
-421
lines changed

5 files changed

+419
-421
lines changed

OWNERS

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
11
pmoody
2-
harro
3-
mshields
4-
smart

README

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
ipaddr.py is a library for working with IP addresses, both IPv4 and IPv6.
2-
It was developed by Google for internal use, and is now open source.
1+
ipaddress.py is a library for working with IP addresses, both IPv4 and IPv6.
2+
It was developed by Google for internal use, and is now open source. ipaddress
3+
was initially based on ipaddr.
34

4-
Project home page: http://code.google.com/p/ipaddr-py/
5+
Project home page: http://code.google.com/p/ipaddress-py/
56

67
Please send contributions to [email protected]. Code should
78
include unit tests and follow the Google Python style guide:

ipaddr.py renamed to ipaddress.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
2323
"""
2424

25-
__version__ = 'branches/3144'
25+
__version__ = '2.1.10'
2626

2727
import struct
2828

@@ -433,7 +433,7 @@ def get_mixed_type_key(obj):
433433
IPv4Address('1.1.1.1') <= IPv4Network('1.1.1.1/24')
434434
435435
doesn't make any sense. There are some times however, where you may wish
436-
to have ipaddr sort these for you anyway. If you need to do this, you
436+
to have ipaddress sort these for you anyway. If you need to do this, you
437437
can use this function as the key= argument to sorted().
438438
439439
Args:
@@ -448,7 +448,7 @@ def get_mixed_type_key(obj):
448448
return obj._get_address_key()
449449
return NotImplemented
450450

451-
class _IPAddrBase(object):
451+
class _IPAddressBase(object):
452452

453453
"""The mother class."""
454454

@@ -472,7 +472,7 @@ def compressed(self):
472472
return str(self)
473473

474474

475-
class _BaseAddress(_IPAddrBase):
475+
class _BaseAddress(_IPAddressBase):
476476

477477
"""A generic IP object.
478478
@@ -562,7 +562,7 @@ def version(self):
562562
raise NotImplementedError('BaseIP has no version')
563563

564564

565-
class _BaseInterface(_IPAddrBase):
565+
class _BaseInterface(_IPAddressBase):
566566

567567
"""A generic IP object.
568568
@@ -1237,7 +1237,7 @@ def __init__(self, address):
12371237
IPv4Address('192.168.1.1')
12381238
12391239
Raises:
1240-
AddressValueError: If ipaddr isn't a valid IPv4 address.
1240+
AddressValueError: If ipaddressisn't a valid IPv4 address.
12411241
12421242
"""
12431243
_BaseAddress.__init__(self, address)
@@ -1309,7 +1309,7 @@ def __init__(self, address):
13091309
IPv4Interface('192.168.1.1')
13101310
13111311
Raises:
1312-
AddressValueError: If ipaddr isn't a valid IPv4 address.
1312+
AddressValueError: If ipaddressisn't a valid IPv4 address.
13131313
NetmaskValueError: If the netmask isn't valid for
13141314
an IPv4 address.
13151315
ValueError: If strict was True and a network address was not

0 commit comments

Comments
 (0)