Instead of the code:

from threading import Lock

It should use:

try:
  from threading import Lock
except:
  class Lock:
    def acquire(self): pass
    def release(self): pass

I suggest:

try:
    from threading import Lock
except:
    from dummy_threading import Lock

Nick

Reply via email to