Fix incorrect unpacking in function summary printer (#104)

pull/106/head
Josselin 6 years ago
parent 191cb76b42
commit 2d46050744
  1. 4
      slither/printers/summary/function.py

@ -38,7 +38,7 @@ class FunctionSummary(AbstractPrinter):
"Write",
"Internal Calls",
"External Calls"])
for (f_name, visi, modifiers, read, write, internal_calls, external_calls) in func_summaries:
for (_c_name, f_name, visi, modifiers, read, write, internal_calls, external_calls) in func_summaries:
read = self._convert(read)
write = self._convert(write)
internal_calls = self._convert(internal_calls)
@ -51,7 +51,7 @@ class FunctionSummary(AbstractPrinter):
"Write",
"Internal Calls",
"External Calls"])
for (f_name, visi, _, read, write, internal_calls, external_calls) in modif_summaries:
for (_c_name, f_name, visi, _, read, write, internal_calls, external_calls) in modif_summaries:
read = self._convert(read)
write = self._convert(write)
internal_calls = self._convert(internal_calls)

Loading…
Cancel
Save