Commit 2c0042cc authored by Maxime Perrotin's avatar Maxime Perrotin

Fix Python2/Python3 incompatibility

map() function is lazy in python3
parent c635a156
Pipeline #2052 failed with stage
in 31 seconds
......@@ -547,7 +547,7 @@ def DumpTypeDumper(
lines.append(codeIndent + "state = self.GetState()")
lines.append(codeIndent + "length = %s.GetLength()" % variableName)
lines.append(codeIndent + "self.Reset(state)")
lines.append(codeIndent + "map(partial(emitElem, %s), range(length))" % variableName)
lines.append(codeIndent + "list(map(partial(emitElem, %s), range(length)))" % variableName)
lines.append(codeIndent + 'self.Reset(state)')
lines.append(codeIndent + 'lines.append("}")')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment