Skip to content

Commit

Permalink
Merge pull request #230 from 13ph03nix/master
Browse files Browse the repository at this point in the history
fix: abstract base classes in collections were moved to collections.abc
  • Loading branch information
13ph03nix authored Nov 24, 2021
2 parents 64a1044 + e846a95 commit be1baf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pocsuite3/lib/core/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@
from pocsuite3.lib.core.settings import URL_ADDRESS_REGEX


try:
collectionsAbc = collections.abc
except AttributeError:
collectionsAbc = collections


def read_binary(filename):
content = ''
with open(filename, 'rb') as f:
Expand Down Expand Up @@ -997,7 +1003,7 @@ def get_host_ipv6(dst='2001:db8::'):
return s.getsockname()[0]


class OrderedSet(collections.OrderedDict, collections.MutableSet):
class OrderedSet(collections.OrderedDict, collectionsAbc.MutableSet):

def add(self, e):
self[e] = None
Expand Down

0 comments on commit be1baf4

Please sign in to comment.