aboutsummaryrefslogtreecommitdiffstats
path: root/resources/tools/papi
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2019-03-12 08:22:21 +0100
committerTibor Frank <tifrank@cisco.com>2019-03-13 08:50:40 +0000
commit81e10cc16d6d8f99c3eeb85bd9af5a863ae07729 (patch)
tree2c1d385de307b34b421cd98e421cf6cf7c9bc7d0 /resources/tools/papi
parent8bc974ef7e13d38ed7d3a059ebf3dfba37cfd461 (diff)
PAPI: Use Python3 for PapiProvider
Change-Id: I39e237db5cba8311ae11fd709b10a17297f3a729 Signed-off-by: Tibor Frank <tifrank@cisco.com>
Diffstat (limited to 'resources/tools/papi')
-rwxr-xr-x[-rw-r--r--]resources/tools/papi/vpp_papi_provider.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/resources/tools/papi/vpp_papi_provider.py b/resources/tools/papi/vpp_papi_provider.py
index e5e030c6ab..d41c4fbe54 100644..100755
--- a/resources/tools/papi/vpp_papi_provider.py
+++ b/resources/tools/papi/vpp_papi_provider.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
# Copyright (c) 2019 Cisco and/or its affiliates.
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -185,7 +185,7 @@ def main():
api_args_unicode = data['api_args']
api_reply = dict(api_name=api_name)
api_args = dict()
- for a_k, a_v in api_args_unicode.iteritems():
+ for a_k, a_v in api_args_unicode.items():
value = binascii.unhexlify(a_v) if isinstance(a_v, unicode) else a_v
api_args[str(a_k)] = value
try: