Skip to content

Commit

Permalink
Fixed backwards compatibility by removing sum() usage
Browse files Browse the repository at this point in the history
  • Loading branch information
olivi-r committed Jun 19, 2023
1 parent 2e021a0 commit 023a0e1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion wasmpy/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ def read_module(buffer):
"body": e,
"obj": create_function(
module["types"][typeidx[i]][1][0],
bytes(sum((j[1:] for j in e), start=())),
"".join("".join(chr(k) for k in j[1:]) for j in e).encode(
"ansi"
),
bytes(module["types"][typeidx[i]][0]),
),
}
Expand Down

0 comments on commit 023a0e1

Please sign in to comment.