summaryrefslogtreecommitdiffstats
path: root/src/vpp-api/vapi/vapi_json_parser.py
diff options
context:
space:
mode:
authorOle Troan <ot@cisco.com>2019-10-25 18:30:40 +0200
committerNeale Ranns <nranns@cisco.com>2019-10-28 09:07:14 +0000
commit1b1ccadc900deffd7b8e306ae8dce79a3115778c (patch)
treee5dcc9834a74b931eb91efb3b5625856ddbb2b48 /src/vpp-api/vapi/vapi_json_parser.py
parentdf0191ead2cf39611714b6603cdc5bdddc445b57 (diff)
vapi: switch to python3
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I78aac39b697e29bb454e5e95855e79ea3122b4c3
Diffstat (limited to 'src/vpp-api/vapi/vapi_json_parser.py')
-rw-r--r--src/vpp-api/vapi/vapi_json_parser.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vpp-api/vapi/vapi_json_parser.py b/src/vpp-api/vapi/vapi_json_parser.py
index 98143e26756..2a03bd04c03 100644
--- a/src/vpp-api/vapi/vapi_json_parser.py
+++ b/src/vpp-api/vapi/vapi_json_parser.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
import json
@@ -395,7 +395,7 @@ class JsonParser(object):
self.types[type_.name] = type_
self.types_by_json[path].append(type_)
self.logger.debug("Parsed type: %s" % type_)
- for name, body in j['aliases'].iteritems():
+ for name, body in j['aliases'].items():
if name in self.aliases:
progress = progress + 1
continue