Remove six.add_metaclass usage
Change-Id: If0d2ad8357ea759638c6b83c04ec7a2f3cf9f6bd Signed-off-by: Stephen Finucane <sfinucan@redhat.com>
This commit is contained in:
parent
4ee7799aa7
commit
0562e3335b
@ -429,8 +429,7 @@ def get_asynchronous_eventlet_pool(size=1000):
|
|||||||
return pool
|
return pool
|
||||||
|
|
||||||
|
|
||||||
@six.add_metaclass(abc.ABCMeta)
|
class BaseServer(metaclass=abc.ABCMeta):
|
||||||
class BaseServer(object):
|
|
||||||
"""Server class to manage multiple WSGI sockets and applications.
|
"""Server class to manage multiple WSGI sockets and applications.
|
||||||
|
|
||||||
This class requires initialize_glance_store set to True if
|
This class requires initialize_glance_store set to True if
|
||||||
|
@ -330,8 +330,7 @@ class NotificationBase(object):
|
|||||||
_send_notification(self.notifier.info, notification_id, payload)
|
_send_notification(self.notifier.info, notification_id, payload)
|
||||||
|
|
||||||
|
|
||||||
@six.add_metaclass(abc.ABCMeta)
|
class NotificationProxy(NotificationBase, metaclass=abc.ABCMeta):
|
||||||
class NotificationProxy(NotificationBase):
|
|
||||||
def __init__(self, repo, context, notifier):
|
def __init__(self, repo, context, notifier):
|
||||||
self.repo = repo
|
self.repo = repo
|
||||||
self.context = context
|
self.context = context
|
||||||
@ -345,8 +344,7 @@ class NotificationProxy(NotificationBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@six.add_metaclass(abc.ABCMeta)
|
class NotificationRepoProxy(NotificationBase, metaclass=abc.ABCMeta):
|
||||||
class NotificationRepoProxy(NotificationBase):
|
|
||||||
def __init__(self, repo, context, notifier):
|
def __init__(self, repo, context, notifier):
|
||||||
self.repo = repo
|
self.repo = repo
|
||||||
self.context = context
|
self.context = context
|
||||||
@ -366,8 +364,7 @@ class NotificationRepoProxy(NotificationBase):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@six.add_metaclass(abc.ABCMeta)
|
class NotificationFactoryProxy(metaclass=abc.ABCMeta):
|
||||||
class NotificationFactoryProxy(object):
|
|
||||||
def __init__(self, factory, context, notifier):
|
def __init__(self, factory, context, notifier):
|
||||||
kwargs = {'context': context, 'notifier': notifier}
|
kwargs = {'context': context, 'notifier': notifier}
|
||||||
|
|
||||||
|
@ -29,7 +29,6 @@ import os
|
|||||||
import platform
|
import platform
|
||||||
import shutil
|
import shutil
|
||||||
import signal
|
import signal
|
||||||
import six
|
|
||||||
import socket
|
import socket
|
||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
@ -78,8 +77,7 @@ except RuntimeError:
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@six.add_metaclass(abc.ABCMeta)
|
class BaseServer(metaclass=abc.ABCMeta):
|
||||||
class BaseServer(object):
|
|
||||||
"""
|
"""
|
||||||
Class used to easily manage starting and stopping
|
Class used to easily manage starting and stopping
|
||||||
a server during functional test runs.
|
a server during functional test runs.
|
||||||
|
Loading…
Reference in New Issue
Block a user