Skip to content

Commit 820ee88

Browse files
committed
Fix
1 parent 7b90fde commit 820ee88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/conftest_wasm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def read_text(self) -> str:
101101
def write_bytes(self, data: bytes):
102102
# Convert binary data to a string where each element is backslash-escaped so that we can
103103
# write to file in cockle using `echo -e <backslash-escaped data>`.
104-
encoded_string = "".join(lambda d: f"\\x{d:02x}", data)
104+
encoded_string = "".join(f"\\x{d:02x}" for d in data)
105105
cmd = ["echo", "-e", encoded_string, ">", str(self)]
106106
subprocess.run(cmd, capture_output=True, text=True, check=True)
107107
return len(data)

0 commit comments

Comments
 (0)