X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Fvpp_object.py;h=8dd2afac97c05cf96c2a61786fd40acae105628a;hb=bea6993274d653582eaeabd00510ec3640ea337f;hp=df44efbbda7407609850383ea12b1765e2a2cc9c;hpb=45eff787cde1b6466fca494b2792898c42a9c06a;p=vpp.git diff --git a/test/vpp_object.py b/test/vpp_object.py index df44efbbda7..8dd2afac97c 100644 --- a/test/vpp_object.py +++ b/test/vpp_object.py @@ -1,13 +1,9 @@ """ abstract vpp object and object registry """ import abc -import six -from six import moves - -@six.add_metaclass(abc.ABCMeta) -class VppObject(object): +class VppObject(metaclass=abc.ABCMeta): """ Abstract vpp object """ @abc.abstractmethod @@ -52,7 +48,7 @@ class VppObject(object): return not self.__eq__(other) -class VppObjectRegistry(object): +class VppObjectRegistry: """ Class which handles automatic configuration cleanup. """ _shared_state = {}