Apply six for metaclass
__metaclass__ cannot be used in python3. six be used in general for python 3 compatibility. Change-Id: I5b3a55bd8a43bbc9c75fcc7f005d31c4af102c3f
This commit is contained in:
parent
a8d21ee296
commit
369a673ef2
@ -18,6 +18,7 @@ import abc
|
||||
import jsonschema
|
||||
import multiprocessing
|
||||
import os
|
||||
import six
|
||||
|
||||
from marconi.openstack.common import timeutils
|
||||
from marconi.queues import bootstrap
|
||||
@ -189,10 +190,9 @@ class FunctionalTestBase(testing.TestBase):
|
||||
self.assertTrue(0 <= delta <= 6000, msg)
|
||||
|
||||
|
||||
@six.add_metaclass(abc.ABCMeta)
|
||||
class Server(object):
|
||||
|
||||
__metaclass__ = abc.ABCMeta
|
||||
|
||||
name = "marconi-functional-test-server"
|
||||
|
||||
def __init__(self):
|
||||
|
Loading…
Reference in New Issue
Block a user