From d33168b59d8c9c41ae7fefe193cd64e617b10de3 Mon Sep 17 00:00:00 2001 From: Cao Xuan Hoang Date: Mon, 5 Dec 2016 11:21:52 +0700 Subject: [PATCH] Use six.add_metaclass instead of __metaclass__ Trivialfix Change-Id: I12e94ee980fd63f68eb8de7dd6223eefb0c16557 --- tools/base.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/base.py b/tools/base.py index 545ff7c5a..9cf13e881 100644 --- a/tools/base.py +++ b/tools/base.py @@ -11,10 +11,11 @@ # under the License. import abc +import six +@six.add_metaclass(abc.ABCMeta) class ValidatorBase(object): - __metaclass__ = abc.ABCMeta @staticmethod @abc.abstractmethod