aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api/python/vpp_papi/vpp_stats.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_stats.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_stats.py')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_stats.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_stats.py b/src/vpp-api/python/vpp_papi/vpp_stats.py
index 654cb82d841..8344de0c55b 100644
--- a/src/vpp-api/python/vpp_papi/vpp_stats.py
+++ b/src/vpp-api/python/vpp_papi/vpp_stats.py
@@ -138,7 +138,7 @@ def stat_entry_to_python(api, e):
return None
-class VPPStats:
+class VPPStats(object):
def __init__(self, socketname='/var/run/stats.sock', timeout=10):
try:
self.api = ffi.dlopen('libvppapiclient.so')