Change abstract classes to use six

Change-Id: Iaa708cd89ddae0fb87812d30ae65e6c7ccb18969
This commit is contained in:
Deklan Dieterly 2014-10-10 08:14:53 -06:00
parent 177ad31574
commit 8d25c2b5dd
4 changed files with 8 additions and 4 deletions

View File

@ -13,10 +13,11 @@
# under the License. # under the License.
import abc import abc
import six
@six.add_metaclass(abc.ABCMeta)
class Publisher(object): class Publisher(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod @abc.abstractmethod
def send_message(self, message): def send_message(self, message):

View File

@ -13,10 +13,11 @@
# under the License. # under the License.
import abc import abc
import six
@six.add_metaclass(abc.ABCMeta)
class EventsRepository(object): class EventsRepository(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod @abc.abstractmethod
def list_events(self, tenant_id, name, dimensions): def list_events(self, tenant_id, name, dimensions):

View File

@ -13,10 +13,11 @@
# under the License. # under the License.
import abc import abc
import six
@six.add_metaclass(abc.ABCMeta)
class MetricsRepository(object): class MetricsRepository(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod @abc.abstractmethod
def list_metrics(self, tenant_id, name, dimensions): def list_metrics(self, tenant_id, name, dimensions):

View File

@ -13,10 +13,11 @@
# under the License. # under the License.
import abc import abc
import six
@six.add_metaclass(abc.ABCMeta)
class TransformsRepository(object): class TransformsRepository(object):
__metaclass__ = abc.ABCMeta
@abc.abstractmethod @abc.abstractmethod
def create_transforms(self, id, tenant_id, name, description, specification, enabled): def create_transforms(self, id, tenant_id, name, description, specification, enabled):