diff options
author | Michael Johnson <johnsomor@gmail.com> | 2021-03-25 23:45:23 +0000 |
---|---|---|
committer | Michael Johnson <johnsomor@gmail.com> | 2021-03-26 18:22:44 +0000 |
commit | 820f1e9af9317b91f3ee11a9ca22ea340119a125 (patch) | |
tree | f12243948eaa7018492918cb17b865e4188a2f84 /designateclient/client.py | |
parent | 233b1ca4b074b50c6180ab01b04ea9d892519f96 (diff) | |
download | python-designateclient-820f1e9af9317b91f3ee11a9ca22ea340119a125.tar.gz |
Remove six and update lower-constraints appdirs
This patch removes the use of "six" as the package declares only
python3 support.
It also updates the appdirs lower-constraint to 1.4.0 to support
pip. This version is available on both centos8 and focal.
It also removes the linter related packages from lower-constraints.
Change-Id: I9337f1998749bc40737f2f0e2dcc406b6f3a0ddf
Diffstat (limited to 'designateclient/client.py')
-rw-r--r-- | designateclient/client.py | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/designateclient/client.py b/designateclient/client.py index 27ac528..03564cb 100644 --- a/designateclient/client.py +++ b/designateclient/client.py @@ -16,17 +16,15 @@ import abc -import six -from six.moves.urllib import parse from stevedore import extension +from urllib import parse from oslo_serialization import jsonutils from designateclient import exceptions -@six.add_metaclass(abc.ABCMeta) -class Controller(object): +class Controller(object, metaclass=abc.ABCMeta): def __init__(self, client): self.client = client @@ -89,8 +87,7 @@ class Controller(object): return body -@six.add_metaclass(abc.ABCMeta) -class CrudController(Controller): +class CrudController(Controller, metaclass=abc.ABCMeta): @abc.abstractmethod def list(self, *args, **kw): @@ -132,6 +129,6 @@ def Client(version, *args, **kwargs): # noqa versions = get_versions() if version not in versions: msg = 'Version %s is not supported, use one of (%s)' % ( - version, list(six.iterkeys(versions))) + version, list(versions.keys())) raise exceptions.UnsupportedVersion(msg) return versions[version](*args, **kwargs) |