Skip to content

Commit ddcfb7b

Browse files
committed
[autorelease] Remove use of legacy importlib_resources functions.
Fixes breakage due to python/importlib_resources#282.
1 parent 72763f7 commit ddcfb7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yowasp_runtime/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
def run_wasm(__package__, wasm_filename, *, resources=[], argv):
1717
# load the WebAssembly application
18-
module_binary = importlib_resources.read_binary(__package__, wasm_filename)
18+
module_binary = importlib_resources.files(__package__).joinpath(wasm_filename).read_bytes()
1919
module_digest = hashlib.sha1(module_binary).hexdigest()
2020

2121
wasi_cfg = wasmtime.WasiConfig()

0 commit comments

Comments
 (0)