Skip to content

Commit cc608b3

Browse files
author
security and code
authored
Update IPy.py
解决 python3.10 后的bug。
1 parent db37780 commit cc608b3

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)