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:
parent
1ef0aa9e1a
commit
fc1de88d98
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user