Skip to content

Commit

Permalink
fix: enable Python versions lower than 3.6 to work with kaitai plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
hello-adam committed Jun 11, 2020
1 parent 8b51480 commit fa12a87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hobbits-plugins/analyzers/KaitaiStruct/scripts/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def dumpStruct(s, sections, prefix=""):
for i, item in enumerate(s):
label = prefix + "[" + str(i) + "]"
sections.append({
"label": f"{label}",
"label": label,
"parent": prefix
})
dumpStruct(item, sections, label)
Expand All @@ -41,7 +41,7 @@ def dumpStruct(s, sections, prefix=""):
sections.append({
"start": descr["start"],
"end": descr["end"],
"label": f"{label}",
"label": label,
"parent": prefix
})
dumpStruct(prop, sections, label)
Expand Down

0 comments on commit fa12a87

Please sign in to comment.