From 3bce8ebfdfaf2a4b576012beb3516d1f4030c20c Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Sat, 24 Nov 2018 21:46:05 -0800 Subject: VPP-1508 Python3 abstract classes Update the syntax to support abstract classes in python 2 and python 3. Depends on: new style classes -- https://gerrit.fd.io/r/16166 Change-Id: Iad2c1240149f38b3faca1b37ab95d3d210e1daee Signed-off-by: Paul Vinciguerra --- test/util.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'test/util.py') diff --git a/test/util.py b/test/util.py index cf45c85a5f4..5ce84070a87 100644 --- a/test/util.py +++ b/test/util.py @@ -1,9 +1,10 @@ """ test framework utilities """ +import abc import socket +import six import sys import os.path -from abc import abstractmethod, ABCMeta from scapy.utils6 import in6_mactoifaceid from scapy.layers.l2 import Ether @@ -93,11 +94,9 @@ def check_core_path(logger, core_path): class NumericConstant(object): - __metaclass__ = ABCMeta desc_dict = {} - @abstractmethod def __init__(self, value): self._value = value -- cgit 1.2.3-korg