Remove collections.abc backwards compatibility

The collections module moves some abstract classes into the abc
submodules in py3. While we supported older versions of python, we
needed to handle importing from either the old or new locations.

Now that we only support runtimes that include the collections.abc
module, we can remove the backwards compatibility handling we had for
the old location.

Change-Id: Idd106a8199fa586e0b34c054383d64218383c001
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
This commit is contained in:
Sean McGinnis
2020-10-16 07:52:36 -05:00
parent 27959daf2b
commit d6df2c20cb
4 changed files with 7 additions and 22 deletions

View File

@@ -50,11 +50,7 @@
"""CLI interface for cinder management."""
try:
import collections.abc as collections
except ImportError:
import collections
import collections.abc as collections
import logging as python_logging
import sys
import time