22
22
23
23
"""
24
24
25
- __version__ = 'branches/3144 '
25
+ __version__ = '2.1.10 '
26
26
27
27
import struct
28
28
@@ -433,7 +433,7 @@ def get_mixed_type_key(obj):
433
433
IPv4Address('1.1.1.1') <= IPv4Network('1.1.1.1/24')
434
434
435
435
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
437
437
can use this function as the key= argument to sorted().
438
438
439
439
Args:
@@ -448,7 +448,7 @@ def get_mixed_type_key(obj):
448
448
return obj ._get_address_key ()
449
449
return NotImplemented
450
450
451
- class _IPAddrBase (object ):
451
+ class _IPAddressBase (object ):
452
452
453
453
"""The mother class."""
454
454
@@ -472,7 +472,7 @@ def compressed(self):
472
472
return str (self )
473
473
474
474
475
- class _BaseAddress (_IPAddrBase ):
475
+ class _BaseAddress (_IPAddressBase ):
476
476
477
477
"""A generic IP object.
478
478
@@ -562,7 +562,7 @@ def version(self):
562
562
raise NotImplementedError ('BaseIP has no version' )
563
563
564
564
565
- class _BaseInterface (_IPAddrBase ):
565
+ class _BaseInterface (_IPAddressBase ):
566
566
567
567
"""A generic IP object.
568
568
@@ -1237,7 +1237,7 @@ def __init__(self, address):
1237
1237
IPv4Address('192.168.1.1')
1238
1238
1239
1239
Raises:
1240
- AddressValueError: If ipaddr isn 't a valid IPv4 address.
1240
+ AddressValueError: If ipaddressisn 't a valid IPv4 address.
1241
1241
1242
1242
"""
1243
1243
_BaseAddress .__init__ (self , address )
@@ -1309,7 +1309,7 @@ def __init__(self, address):
1309
1309
IPv4Interface('192.168.1.1')
1310
1310
1311
1311
Raises:
1312
- AddressValueError: If ipaddr isn 't a valid IPv4 address.
1312
+ AddressValueError: If ipaddressisn 't a valid IPv4 address.
1313
1313
NetmaskValueError: If the netmask isn't valid for
1314
1314
an IPv4 address.
1315
1315
ValueError: If strict was True and a network address was not
0 commit comments