summaryrefslogtreecommitdiffstats
path: root/src
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
parentdf0191ead2cf39611714b6603cdc5bdddc445b57 (diff)
vapi: switch to python3
Type: fix Signed-off-by: Ole Troan <ot@cisco.com> Change-Id: I78aac39b697e29bb454e5e95855e79ea3122b4c3
Diffstat (limited to 'src')
-rwxr-xr-xsrc/vpp-api/vapi/vapi_c_gen.py2
-rwxr-xr-xsrc/vpp-api/vapi/vapi_cpp_gen.py2
-rw-r--r--src/vpp-api/vapi/vapi_json_parser.py4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/vpp-api/vapi/vapi_c_gen.py b/src/vpp-api/vapi/vapi_c_gen.py
index 9a285eb98ad..330bd92ef8f 100755
--- a/src/vpp-api/vapi/vapi_c_gen.py
+++ b/src/vpp-api/vapi/vapi_c_gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
import argparse
import os
diff --git a/src/vpp-api/vapi/vapi_cpp_gen.py b/src/vpp-api/vapi/vapi_cpp_gen.py
index c08993dc918..c6aa009cbb9 100755
--- a/src/vpp-api/vapi/vapi_cpp_gen.py
+++ b/src/vpp-api/vapi/vapi_cpp_gen.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python3
import argparse
import os
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