Remove the six library

This commit removes the six library from the repo, as
the only supported Python version is 3.9.

Test Plan:
PASS: Success on tox command.

Story: 2011149
Task: 50418

Change-Id: I407e3a3d96b407cf00cca8bbcd1b5312d099b908
Signed-off-by: Hugo Brito <hugo.brito@windriver.com>
This commit is contained in:
Hugo Brito
2024-06-24 15:46:48 -03:00
parent 9f90f52cfd
commit 2cdb5a1f17
30 changed files with 81 additions and 139 deletions

View File

@@ -19,7 +19,6 @@ import uuid
from oslo_db import exception as oslo_db_exception
from oslo_log import log as logging
import six.moves
from dccommon import consts as dccommon_consts
from dcorch.common import consts
@@ -39,7 +38,7 @@ def get_import_path(cls):
# Returns a iterator of tuples containing batch_size number of objects in each
def get_batch_projects(batch_size, project_list, fillvalue=None):
args = [iter(project_list)] * batch_size
return six.moves.zip_longest(fillvalue=fillvalue, *args)
return itertools.zip_longest(fillvalue=fillvalue, *args)
# to do validate the quota limits