Move toward python 3/2 compatible metaclass

Change-Id: Ia7e07a7530e26c388c5da3e362510233b6a65aa6
This commit is contained in:
Joshua Harlow
2013-10-09 17:33:12 -07:00
parent b2c82c8dce
commit 0abfe90eb3
9 changed files with 27 additions and 24 deletions

View File

@@ -19,14 +19,15 @@
import abc
import six
class JobBoard(object):
class JobBoard(six.with_metaclass(abc.ABCMeta)):
"""A jobboard is an abstract representation of a place where jobs
can be posted, reposted, claimed and transferred. There can be multiple
implementations of this job board, depending on the desired semantics and
capabilities of the underlying jobboard implementation.
"""
__metaclass__ = abc.ABCMeta
def __init__(self, name):
self._name = name