summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python/vpp_papi/vpp_papi.py
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-26 12:04:48 -0800
committerOle Trøan <otroan@employees.org>2018-11-28 07:30:40 +0000
commit7e713f133a62efdc9d3019aeeee15cce774087e2 (patch)
tree8b3aca5d3392460d3010c9c9f693df43a180e2a5 /src/vpp-api/python/vpp_papi/vpp_papi.py
parent526ad04e013a24d685419e4ff0d7c5f03c3395f9 (diff)
vpp_papi: Use new style classes.
Python2 defaults to old style classes to maintain compatability with python 2.1. Moving to new style classes will ensure consistent behavior across interpreters. Change-Id: I89493d608d1edb63989000c17a9566a97785a4aa Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api/python/vpp_papi/vpp_papi.py')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_papi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_papi.py b/src/vpp-api/python/vpp_papi/vpp_papi.py
index 8139cf3c614..ca4b955fd07 100644
--- a/src/vpp-api/python/vpp_papi/vpp_papi.py
+++ b/src/vpp-api/python/vpp_papi/vpp_papi.py
@@ -45,7 +45,7 @@ class VppEnumType(type):
# Python3
# class VppEnum(metaclass=VppEnumType):
# pass
-class VppEnum:
+class VppEnum(object):
__metaclass__ = VppEnumType
@@ -77,7 +77,7 @@ class FuncWrapper(object):
return self._func(**kwargs)
-class VPP():
+class VPP(object):
"""VPP interface.
This class provides the APIs to VPP. The APIs are loaded