Files
python-uncompyle6/test/simple_source/bug33/03_while_else.py
2016-11-27 07:06:20 -05:00

9 lines
186 B
Python

# Bug from 3.4 threading. Bug is handling while/else
def acquire(self):
with self._cond:
while self:
rc = False
else:
rc = True
return rc