aboutsummaryrefslogtreecommitdiffstats
path: root/tools/syz-headerparser/headerlib/container.py
diff options
context:
space:
mode:
authorPalash Oswal <oswalpalash@gmail.com>2020-11-07 11:01:19 +0530
committerDmitry Vyukov <dvyukov@google.com>2020-11-10 08:20:05 +0100
commitcca8798699baeeccbf80af23d234ac19a5d667aa (patch)
tree8f9f04022041054b7fd5a46d6cfd61bd5da804d5 /tools/syz-headerparser/headerlib/container.py
parent64069d48f293e0be98d4a78a6f7be23861cc1e06 (diff)
tools/headerparser: update to python3
Updating scripts to use python3 using 2to3 as python2 is EOL
Diffstat (limited to 'tools/syz-headerparser/headerlib/container.py')
-rw-r--r--tools/syz-headerparser/headerlib/container.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/syz-headerparser/headerlib/container.py b/tools/syz-headerparser/headerlib/container.py
index d4d813480..80765c0d5 100644
--- a/tools/syz-headerparser/headerlib/container.py
+++ b/tools/syz-headerparser/headerlib/container.py
@@ -210,7 +210,7 @@ class GlobalHierarchy(dict):
sr.set_global_hierarchy(self)
self["struct %s" % (struct_name)] = sr
- for struct_name in self.keys():
+ for struct_name in list(self.keys()):
sr = self[struct_name]
for field in sr.get_fields():
# If the item is a struct object, we link it against an