Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion threadpoolctl.py
Original file line number Diff line number Diff line change
Expand Up @@ -1132,7 +1132,12 @@ def _find_libraries_pyodide(self):
)
return

for filepath in LDSO.loadedLibsByName.as_object_map():
if hasattr(LDSO.loadedLibsByName, "as_py_json"): # Pyodide >= 0.29
libs_iter = LDSO.loadedLibsByName.as_py_json()
else:
libs_iter = LDSO.loadedLibsByName.as_object_map() # Pyodide < 0.29

for filepath in libs_iter:
# Some libraries are duplicated by Pyodide and do not exist in the
# filesystem, so we first check for the existence of the file. For
# more details, see
Expand Down
Loading