vapi: switch to python3
[vpp.git] / src / vpp-api / vapi / vapi_json_parser.py
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