if sys.version_info < (3,):
from thread import allocate_lock
from dummy_thread import allocate_lock
from _thread import allocate_lock
from _dummy_thread import allocate_lock
##class allocate_lock(object):
## for i in range(4, 0, -1):
## print sys._getframe(i).f_code
## return self._real.__enter__()
## def __exit__(self, *args):
## return self._real.__exit__(*args)
## return self._real.acquire(f)