summaryrefslogtreecommitdiff
path: root/build-aux
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2017-06-29 20:33:23 -0700
committerBen Pfaff <blp@ovn.org>2017-07-06 14:06:08 -0700
commit4ab665623cbb4c6506e48b82e0c9fe8585f42e13 (patch)
tree37a14af6804042ebc02cbae9b86ebc3008e02c37 /build-aux
parenta4d10a7ca937d73873f6f98619d88682e69f5dbe (diff)
downloadopenvswitch-4ab665623cbb4c6506e48b82e0c9fe8585f42e13.tar.gz
Python3 compatibility: iteritems to items
Allow compability with python3 and python2 by changing iteritems() to items(). Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Ben Pfaff <blp@ovn.org>
Diffstat (limited to 'build-aux')
-rwxr-xr-xbuild-aux/extract-ofp-actions2
-rwxr-xr-xbuild-aux/extract-ofp-errors2
-rwxr-xr-xbuild-aux/extract-ofp-fields2
3 files changed, 3 insertions, 3 deletions
diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions
index 874e6b4a7..c11297c60 100755
--- a/build-aux/extract-ofp-actions
+++ b/build-aux/extract-ofp-actions
@@ -13,7 +13,7 @@ version_map = {"1.0": 0x01,
"1.3": 0x04,
"1.4": 0x05,
"1.5": 0x06}
-version_reverse_map = dict((v, k) for (k, v) in version_map.iteritems())
+version_reverse_map = dict((v, k) for (k, v) in version_map.items())
# Map from vendor name to the length of the action header.
vendor_map = {"OF": (0x00000000, 4),
diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors
index 336a2401f..71ae0bd5f 100755
--- a/build-aux/extract-ofp-errors
+++ b/build-aux/extract-ofp-errors
@@ -14,7 +14,7 @@ version_map = {"1.0": 0x01,
"1.4": 0x05,
"1.5": 0x06,
"1.6": 0x07}
-version_reverse_map = dict((v, k) for (k, v) in version_map.iteritems())
+version_reverse_map = dict((v, k) for (k, v) in version_map.items())
token = None
line = ""
diff --git a/build-aux/extract-ofp-fields b/build-aux/extract-ofp-fields
index 51cda4e0b..e4bb4dcb1 100755
--- a/build-aux/extract-ofp-fields
+++ b/build-aux/extract-ofp-fields
@@ -16,7 +16,7 @@ VERSION = {"1.0": 0x01,
"1.3": 0x04,
"1.4": 0x05,
"1.5": 0x06}
-VERSION_REVERSE = dict((v,k) for k, v in VERSION.iteritems())
+VERSION_REVERSE = dict((v,k) for k, v in VERSION.items())
TYPES = {"u8": (1, False),
"be16": (2, False),