Migrate to 3.10 compatible abc usage.

pull/965/head
novafacing 4 years ago committed by Disconnect3d
parent b73973392d
commit 07b7c754cd

@ -32,7 +32,7 @@ class memoize:
def __call__(self, *args, **kwargs):
how = None
if not isinstance(args, collections.Hashable):
if not isinstance(args, collections.abc.Hashable):
print("Cannot memoize %r!", file=sys.stderr)
how = "Not memoizeable!"
value = self.func(*args)

Loading…
Cancel
Save