Skip to content

Commit ce61048

Browse files
Dorian Birrauxcrazyeng
authored andcommitted
Update lock.py
1 parent 01946d6 commit ce61048

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

wolframclient/utils/lock.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
from wolframclient.utils.importutils import safe_import_string_and_call
44

55
try:
6-
76
_lock = safe_import_string_and_call('multithreading.Lock')
87
def Lock():
98
return _lock
109

1110
except (ImportError, OSError):
1211

13-
# JYTHON is raising an ImportError when running "import multithreading"
14-
# GVisor is raising an OSError when running "multithreading.Lock()" because the feature is not implemented
12+
# JYTHON is raising an ImportError when running "import multiprocessing"
13+
# GVisor is raising an OSError when running "multiprocessing.Lock()" because the feature is not implemented
1514

1615
from contextlib import contextmanager
1716
import warnings

0 commit comments

Comments
 (0)