Skip to content

Commit 5e2394d

Browse files
authored
Merge pull request #73 from kylincodelab/lazynms-patch-1
Update IPy.py 解决issues #74
2 parents db37780 + cc608b3 commit 5e2394d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

thirdlib/IPy/IPy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1017,10 +1017,10 @@ def v46map(self):
10171017
raise ValueError("%s cannot be converted to an IPv4 address."
10181018
% repr(self))
10191019

1020-
class IPSet(collections.MutableSet):
1020+
class IPSet(collections.abc.MutableSet):
10211021
def __init__(self, iterable=[]):
10221022
# Make sure it's iterable, otherwise wrap
1023-
if not isinstance(iterable, collections.Iterable):
1023+
if not isinstance(iterable, collections.abc.Iterable):
10241024
raise TypeError("'%s' object is not iterable" % type(iterable).__name__)
10251025

10261026
# Make sure we only accept IP objects

0 commit comments

Comments
 (0)