From fc1de88d9856d01df85d2c8784552f9f46a8cb8a Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Tue, 3 Jun 2014 15:53:02 +0200 Subject: [PATCH] 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 --- heat/engine/function.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/heat/engine/function.py b/heat/engine/function.py index 50eff9386..59d2de634 100644 --- a/heat/engine/function.py +++ b/heat/engine/function.py @@ -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.