aboutsummaryrefslogtreecommitdiff
path: root/kolla/common/task.py
diff options
context:
space:
mode:
authorMarcin Juszkiewicz <marcin.juszkiewicz@linaro.org>2019-10-24 13:47:48 +0200
committerRadosław Piliszek <radoslaw.piliszek@gmail.com>2020-02-17 18:01:41 +0000
commitceae02f09d1c4e67013485c7323c11f8655c9c1e (patch)
tree11695dde669181bdc68ebfc68db081d13f259882 /kolla/common/task.py
parent1b0884af8a4dc90b459c2557acdf987ad0a7df75 (diff)
downloadkolla-ceae02f09d1c4e67013485c7323c11f8655c9c1e.tar.gz
kolla-ceae02f09d1c4e67013485c7323c11f8655c9c1e.zip
Get rid of Python 2 support
2020 came, everyone should be using Python 3 now. As per the official python support timeline set forth by the OpenStack TC [1], OpenStack Train (in our case, kolla 9.x) is the last release that will support python2.7. [1] https://governance.openstack.org/tc/resolutions/20180529-python2-deprecation-timeline.html Related bug: https://bugs.launchpad.net/tripleo/+bug/1856678 Merging depends on TripleO team - once they move CI job to CentOS 8 we can merge. Implements: blueprint drop-py2-support Change-Id: Ic459561ab6ab8c62993c044c7a82d887839da289
Diffstat (limited to 'kolla/common/task.py')
-rw-r--r--kolla/common/task.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/kolla/common/task.py b/kolla/common/task.py
index ff23e2ad8..5632423d5 100644
--- a/kolla/common/task.py
+++ b/kolla/common/task.py
@@ -12,11 +12,8 @@
import abc
-import six
-
-@six.add_metaclass(abc.ABCMeta)
-class Task(object):
+class Task(object, metaclass=abc.ABCMeta):
def __init__(self):
self.success = False