import "collections.abc" explicitly

Collections Abstract Base Classes have been moved to the
collections.abc module, which was part of the collections
module before[1] [2]. Usage from the collections module
directly is deprecated and will be removed from 3.10.
This commit updates to import abc module explicitly
wherever required as the same will no longer be visible/directly
used from the collections module.

[1] https://docs.python.org/3/library/collections.abc.html
[2] http://paste.openstack.org/show/802512/

Change-Id: I173f4d647474c21c5d062280bd5703edffb4978e
This commit is contained in:
manchandavishal 2021-02-10 09:45:21 +00:00
parent 944902c5c2
commit 6efaee23d5
4 changed files with 4 additions and 2 deletions

View File

@ -21,6 +21,7 @@ the classes contained therein.
"""
import collections
import collections.abc
import copy
from importlib import import_module
import inspect

View File

@ -13,6 +13,7 @@
# under the License.
import collections
import collections.abc
import copy
import inspect
import json

View File

@ -16,7 +16,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import collections
import collections.abc
import copy
import logging
import os

View File

@ -10,7 +10,7 @@
# License for the specific language governing permissions and limitations
# under the License.
import collections
import collections.abc
import functools
import inspect