diff options
author | Ole Troan <ot@cisco.com> | 2019-10-25 18:30:40 +0200 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2019-10-28 09:07:14 +0000 |
commit | 1b1ccadc900deffd7b8e306ae8dce79a3115778c (patch) | |
tree | e5dcc9834a74b931eb91efb3b5625856ddbb2b48 /src/vpp-api/vapi/vapi_json_parser.py | |
parent | df0191ead2cf39611714b6603cdc5bdddc445b57 (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.py | 4 |
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 |