Skip to content

Commit 01946d6

Browse files
committed
when pkg_resources are not available we can return a tuple
1 parent 351f4ed commit 01946d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolframclient/utils/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@
139139
)
140140

141141
multithreading = API(Lock="wolframclient.utils.lock.Lock")
142-
pkg_resources = API(iter_entry_points="pkg_resources.iter_entry_points")
142+
pkg_resources = API(iter_entry_points=("pkg_resources.iter_entry_points", lambda *args, **opts: ()))
143143

144144
PIL = API(Image="PIL.Image.Image", fromarray="PIL.Image.fromarray", open="PIL.Image.open")
145145

0 commit comments

Comments
 (0)