From 602aec92fb12f38d1bab9bfbe098a7d802bcd13d Mon Sep 17 00:00:00 2001 From: Dev Tanna Date: Fri, 18 Nov 2022 10:44:59 +0100 Subject: [PATCH] Correcting use of collections iterable. --- superminhash/utlilits.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/superminhash/utlilits.py b/superminhash/utlilits.py index b07d9ef..77178d5 100644 --- a/superminhash/utlilits.py +++ b/superminhash/utlilits.py @@ -73,7 +73,7 @@ def get_value(value_in, hash_type, build_by_features, build_by_features( build_by_text(unicode(value_in), **tokenize_args) , **kwargs) - elif isinstance(value_in, collections.Iterable): + elif isinstance(value_in, collections.abc.Iterable): value_out = build_by_features(value_in, **kwargs) elif isinstance(value_in, long): if type(hash_type).__name__ == 'Simhash':