Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.9/dist-packages/cffi/lock.py: 40%
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
Shortcuts on this page
r m x toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
1import sys
3if sys.version_info < (3,):
4 try:
5 from thread import allocate_lock
6 except ImportError:
7 from dummy_thread import allocate_lock
8else:
9 try:
10 from _thread import allocate_lock
11 except ImportError:
12 from _dummy_thread import allocate_lock
15##import sys
16##l1 = allocate_lock
18##class allocate_lock(object):
19## def __init__(self):
20## self._real = l1()
21## def __enter__(self):
22## for i in range(4, 0, -1):
23## print sys._getframe(i).f_code
24## print
25## return self._real.__enter__()
26## def __exit__(self, *args):
27## return self._real.__exit__(*args)
28## def acquire(self, f):
29## assert f is False
30## return self._real.acquire(f)