We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
as_py_json
as_object_map
1 parent 1b35392 commit cf38a18Copy full SHA for cf38a18
threadpoolctl.py
@@ -1132,7 +1132,12 @@ def _find_libraries_pyodide(self):
1132
)
1133
return
1134
1135
- for filepath in LDSO.loadedLibsByName.as_object_map():
+ if hasattr(LDSO.loadedLibsByName, "as_py_json"): # Pyodide >= 0.29
1136
+ libs_iter = LDSO.loadedLibsByName.as_py_json()
1137
+ else:
1138
+ libs_iter = LDSO.loadedLibsByName.as_object_map() # Pyodide < 0.29
1139
+
1140
+ for filepath in libs_iter:
1141
# Some libraries are duplicated by Pyodide and do not exist in the
1142
# filesystem, so we first check for the existence of the file. For
1143
# more details, see
0 commit comments