PAPI: Use Python3 for PapiProvider
[csit.git] / resources / tools / papi / vpp_papi_provider.py
old mode 100644 (file)
new mode 100755 (executable)
index e5e030c..d41c4fb
@@ -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: