diff options
author | Riccardo Pittau <elfosardo@gmail.com> | 2019-11-29 10:16:28 +0100 |
---|---|---|
committer | Riccardo Pittau <elfosardo@gmail.com> | 2019-12-23 09:38:25 +0100 |
commit | 78c121a5d7b6efc84d541ea4de98aa910255884e (patch) | |
tree | f60d0b75107c58f14ed99f81ef9c6831ecb2feea /ironic/drivers/modules/snmp.py | |
parent | 67f5a6bf5c8922a56d70daae023a004e672a88db (diff) | |
download | ironic-78c121a5d7b6efc84d541ea4de98aa910255884e.tar.gz |
Stop using six library
Since we've dropped support for Python 2.7, it's time to look at
the bright future that Python 3.x will bring and stop forcing
compatibility with older versions.
This patch removes the six library from requirements, not
looking back.
Change-Id: Ib546f16965475c32b2f8caabd560e2c7d382ac5a
Diffstat (limited to 'ironic/drivers/modules/snmp.py')
-rw-r--r-- | ironic/drivers/modules/snmp.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ironic/drivers/modules/snmp.py b/ironic/drivers/modules/snmp.py index cd444305b..2a2155050 100644 --- a/ironic/drivers/modules/snmp.py +++ b/ironic/drivers/modules/snmp.py @@ -29,7 +29,6 @@ import time from oslo_log import log as logging from oslo_service import loopingcall from oslo_utils import importutils -import six from ironic.common import exception from ironic.common.i18n import _ @@ -430,8 +429,7 @@ def retry_on_outdated_cache(f): return wrapper -@six.add_metaclass(abc.ABCMeta) -class SNMPDriverBase(object): +class SNMPDriverBase(object, metaclass=abc.ABCMeta): """SNMP power driver base class. The SNMPDriver class hierarchy implements manufacturer-specific MIB actions |