From 10c230618f27f9b835428e531acd23c6b901876b Mon Sep 17 00:00:00 2001 From: Takashi Kajinami Date: Thu, 22 Jul 2021 19:38:06 +0900 Subject: [PATCH] Replace deprecated import of ABCs from collections ABCs in collections should be imported from collections.abc and direct import from collections is deprecated since Python 3.3. This replaces that deprecated usage mentioned in method descriptions. Change-Id: I6864c6d84407ed9512917266ccb06a51bab5714a --- cloudkitty/storage/v2/elasticsearch/client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudkitty/storage/v2/elasticsearch/client.py b/cloudkitty/storage/v2/elasticsearch/client.py index 79651b8c..50f64f77 100644 --- a/cloudkitty/storage/v2/elasticsearch/client.py +++ b/cloudkitty/storage/v2/elasticsearch/client.py @@ -241,7 +241,7 @@ class ElasticsearchClient(object): :param instruction: instruction to execute for each term :type instruction: dict :param terms: list of terms for which instruction should be executed - :type terms: collections.Iterable + :type terms: collections.abc.Iterable :rtype: requests.models.Response """ instruction = json.dumps(instruction) @@ -256,7 +256,7 @@ class ElasticsearchClient(object): """Indexes each of the documents in 'terms' :param terms: list of documents to index - :type terms: collections.Iterable + :type terms: collections.abc.Iterable """ LOG.debug("Indexing {} documents".format(len(terms))) return self.bulk_with_instruction({"index": {}}, terms)