vapi: switch to python3 96/22996/2
authorOle Troan <ot@cisco.com>
Fri, 25 Oct 2019 16:30:40 +0000 (18:30 +0200)
committerNeale Ranns <nranns@cisco.com>
Mon, 28 Oct 2019 09:07:14 +0000 (09:07 +0000)
Type: fix
Signed-off-by: Ole Troan <ot@cisco.com>
Change-Id: I78aac39b697e29bb454e5e95855e79ea3122b4c3

src/vpp-api/vapi/vapi_c_gen.py
src/vpp-api/vapi/vapi_cpp_gen.py
src/vpp-api/vapi/vapi_json_parser.py

index 9a285eb..330bd92 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
 
 import argparse
 import os
index c08993d..c6aa009 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
 
 import argparse
 import os
index 98143e2..2a03bd0 100644 (file)
@@ -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