Use six.add_metaclass instead of __metaclass__

According to http://docs.openstack.org/developer/hacking/ it should
be preferred to use six.add_metaclass instead of __metaclass__.

Change-Id: I1775035ea998b78a52c28ffe71dda2ede1377b31
This commit is contained in:
Christian Berendt 2014-06-03 15:53:02 +02:00
parent 1ef0aa9e1a
commit fc1de88d98

View File

@ -15,14 +15,15 @@ import abc
import collections
import itertools
import six
@six.add_metaclass(abc.ABCMeta)
class Function(object):
"""
Abstract base class for template functions.
"""
__metaclass__ = abc.ABCMeta
def __init__(self, stack, fn_name, args):
"""
Initialise with a Stack, the function name and the arguments.